Tôi cố gắng để addapt mã của tôi lên iOS 7.UITextAttributeTextShadowOffset được dùng nữa
[[UIBarButtonItem appearance] setTitleTextAttributes:@{
UITextAttributeTextColor: [UIColor colorWithRed:214.0f/255.0f green:210.0f/255.0f blue:197.0f/255.0f alpha:1.0f],
UITextAttributeTextShadowColor: [UIColor colorWithWhite:0.0f alpha:0.750f],
UITextAttributeTextShadowOffset: [NSValue valueWithCGSize:CGSizeMake(0.0f, 1.0f)]
Tôi nhận được một vài lỗi, UITextAttributeColor is deprecated
, UITextAttributeTextShadowColor is deprecated
, và UITextAttributeTextShadowOffset is deprecated
.
Bấm vào đây: http: //stackoverflow.com/questions/18968305/ios-7-only-app-crashes-at-startup – user2632844