I want to change the color of back button of a navigation bar to make it look like this
Set the backBarButtonItem
's tintColor
:
self.navigationItem.backBarButtonItem.tintColor = [UIColor redColor];
TIP:如果您希望将其应用于all UIBarButtonItem
默认情况下,您的应用程序中存在实例,然后您可以使用新的UIAppearanceAPI 来做到这一点:
[[UIBarButtonItem appearance] setTintColor:[UIColor redColor]];
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)