更改UISearchBar选项突出显示颜色ios 7

时间:2013-12-04 15:56:34

标签: uisearchbar searchbar

我正在为ios 7开发一个应用程序,我想将突出显示蓝色的关闭按钮更改为紫色,所以都是相同的

这里是描述我想做什么的图像

http://imageshack.us/photo/my-images/199/pg9l.png/

1 个答案:

答案 0 :(得分:0)

使用Appearance API更改搜索栏中包含的UIBarButtonItems的色调颜色:

[[UIBarButtonItem appearanceWhenContainedIn: [UISearchBar class], nil] setTintColor:[UIColor purpleColor]];
相关问题