Imam Arief W Imam Arief W - 9 months ago 69
Objective-C Question

set first text on UISearchBar

i want to set first text on my UISearchBar -the text is "Search"-, and the text will disappear when user start typing.
just like this:

alt text
alt text

how it could be.???


use placeholder property to set your grayish text that get disappears while text is written on it

searchBar.placeholder = @"Search";