简体   繁体   English

iOS人员选择器更改按钮颜色

[英]iOS people picker change buttons color

I'm trying to change the ABPeoplePicker (contact list) navigation items color, because buttons in my app are white and so I can't see them on this window. 我正在尝试更改ABPeoplePicker(联系人列表)导航项的颜色,因为我的应用程序中的按钮为白色,因此在此窗口中看不到它们。 I tried a lot of things like this : 我尝试了很多类似这样的事情:

peoplePicker.navigationBar.tintColor = UIColor.redColor()

... or that : ... 或者那个 :

UIBarButtonItem.appearance().tintColor = UIColor.redColor()

but there is no way... 但是没有办法

Thanks for your help ! 谢谢你的帮助 !

Try: 尝试:

  ** = [UIColor redColor];

Hope this helps 希望这可以帮助

Swift: 迅速:

navigationController?.navigationBar.barTintColor = UIColor.redColor()

Something like that? 这样的东西? Please let me know 请告诉我

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

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