我正在努力将我的代码适应iOS 7。
[[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)]
我遇到了几个错误:UITextAttributeColor被弃用了
,UITextAttributeTextShadowColor被弃用了
,以及 UITextAttributeTextShadowOffset被弃用了
。