我正在尝试更改后退按钮箭头。
我目前使用以下代码来控制后退按钮的文本大小和颜色:
[[UIBarButtonItem appearance] setTitleTextAttributes:
[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor], UITextAttributeTextColor,
[UIFont boldSystemFontOfSize:16.0f], UITextAttributeFont,
[UIColor darkGrayColor], UITextAttributeTextShadowColor,
[NSValue valueWithCGSize:CGSizeMake(0.0, -1.0)], UITextAttributeTextShadowOffset,
nil] forState:UIControlStateNormal];
但如果我只想为返回按钮更改箭头的颜色,该怎么办?
UINavigationBar
的一些属性行为已经从 iOS 7 发生了改变。查看这个答案以了解其他属性的影响。 - Bhavin