我为UISearchbar和它周围的区域设置了相同的颜色。然而,搜索栏的颜色似乎被其他东西所主宰。
正在做什么
self.srchBar.tintColor = [UIColor clColorOfUISearchBar];
self.srchBar.backgroundColor = [UIColor clColorOfUISearchBar];
不起作用。即使我将其设置为明显的,如红色,红色将是很好的,背景。上面有个灰色的东西。
没有UISearchBar前景色。
那么我该怎么做呢?
发布于 2013-12-05 14:27:56
这样如何:
[searchBar setBackgroundImage:[UIImage new]];
[searchBar setTranslucent:YES];
https://stackoverflow.com/questions/20392974
复制相似问题