【发布时间】:2014-03-24 18:58:58
【问题描述】:
我在模态 UIViewController 中有一个 UISearchBar,它的 presentationStyle 设置为 UIModalPresentationStyleFormSheet。
在搜索栏上设置色调颜色仅在 iphone 上执行。 iPad 最终仍然使用应用程序的色调颜色。为什么会发生这种情况?
_searchBar = [[UISearchBar alloc] init];
_searchBar.tintColor = [UIColor whiteColor];
【问题讨论】:
-
为什么不在应用程序启动中尝试搜索栏的外观。例如:- [[UISearchBar 外观] setTintColor:[UIColor whiteColor]];
-
这正是我最终所做的!谢谢@pawan
标签: ios objective-c ipad