我已经为我的UISearchBar下面的代码:的UISearchBar清晰的背景图像
UISearchBar * searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, 300, 44)];
searchBar.placeholder = @"Search for a tag";
searchBar.delegate = self;
结果如下:
我想白色背景更改为清晰颜色。我该怎么做呢?基本上我想要textField背景颜色清晰。
请尝试[这里] [1] [1]:http://stackoverflow.com/questions/2139115/uisearchbar-clear-background-color-or-set-background-像iphone-SDK 希望它会帮助你.... 感谢 –
我最近面对这个问题,我已经不是设置透明背景图像的不同的解决方案http://stackoverflow.com/questions/37158702/ ios-uisearchbar-background-color-in-ios-9 –