简体   繁体   English

更改工具栏的颜色

[英]Change tint color of the toolbar

I want to change the tint of the buttons in the toolbar. 我想更改工具栏中按钮的色彩。

I've seen this question but I don't know how to access the toolbar object... 我已经看到了这个问题,但是我不知道如何访问工具栏对象...

self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:0.83 green:0.43 blue:0.57 alpha:0.5];

考虑到您正在视图控制器中编写此行代码...

我发现此着色UIButton和UIBarButtonItem希望对您有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM