I had same problem and tried for few hours, the conclusion is UISearchBar are quite buggy ! Especially in "minimal" mode.
My workaround is :
- Set the search style to Default (Prominent)
- Set the BackgroundImage (Not BackgroundColor) to a transparent image or create an UIImage using
[UIColor clearColor]
- Set the BarTintColor to
[UIColor blackColor]
- Set the TintColor to
[UIColor whiteColor]
The search bar looks like minimal mode in normal, and the background will be white when selected, so you can see the black color text.
The workaround isn't perfect, it just work, hope can help.