您的位置: 首页 > 技术问答 > 更改导航栏的按钮颜色 更改导航栏的按钮颜色 分类: 技术问答 • 2022-08-16 14:47:49 问题描述: 是否可以在iOS 6的导航栏中没有图像的情况下更改按钮颜色?更改导航栏的按钮颜色 我看到其他stackoverflow帖子,在iOS 5你需要一个图像。这仍然是真的吗? +0 可能重复[如何着色UIBarButtonItem背景颜色?](http://stackoverflow.com/questions/3274473/how-to-tint-uibarbuttonitem-background-color)和http://stackoverflow.com/questions/13677703/change-uibarbuttonitems-color – 答 用色调颜色更改颜色。以下将给你一个红色背景的按钮。 UIBarButtonItem *button = [[UIBarButtonItem alloc] init]; [button setTintColor:[UIColor redColor]]; 或者如果使用storyboard/xib,则会出现色调下拉列表。 +0 非常感谢。我在网上看到一些其他的帖子都是古老的。 – cdub +0 没问题。请接受。 – WCByrne
可能重复[如何着色UIBarButtonItem背景颜色?](http://stackoverflow.com/questions/3274473/how-to-tint-uibarbuttonitem-background-color)和http://stackoverflow.com/questions/13677703/change-uibarbuttonitems-color –