Dev:UISearchBar

UISearchBar is a rounded text field which a search icon.



More control on appearance
The SDK only provides methods to change the search bar's tint color, but there are undocumented methods for stronger controls.

usesEmbeddedAppearance
Setting this property to true will make the search bar appear as embedded, like within MobileMail.

backgroundImage
Use this property to set any background for your search bar. Note that the image is always scaled, even if you make a stretched copy.

contentInset
Set the padding between the text field and the background. Default is {0, 5, 0, 5}.

cancelButton, searchField
The cancel button and the text field can also be customized. In particular, the searchField's rightView is that bookmark button, which you can replace with your own.