Discover our app iOS7.1 compiled Uisearchbar background color is black
For normal effects (the recessed search box is not a uisearchbar background image, but a UIButton)
The effect is to hide UIButton after clicking to expand Uisearchbar
iOS7.1 post-compilation effects
Attempt to modify the Bartintcolor property
Searchbar.bartintcolor = [Uicolor Clearcolor]; Revision changed to
Searchbar.bartintcolor = [R.i Pinkcolor]; Effect
There are two black lines, very ugly. Many methods have been tried to get rid of these two lines.
[OBJC]View Plaincopyprint?
- Method 1. Searchbar. Searchbarstyle = Uisearchbarstyleminimal;
The above code can remove the black line, but Uisearchbaricon, Canclebutton, font color and so on need to change.
Continue to study and find the final Solution
[OBJC]View Plaincopyprint?
- <span style="FONT-SIZE:18PX;" > method 2. [Searchbar setbackgroundimage:[uiimage new];
- </span>
Transferred from: http://blog.csdn.net/jekkihun/article/details/21244167
iOS7.1 Uisearchbar Remove the black line.