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:
how it could be.??? thanx
use placeholder
property to set your grayish text that get disappears while text is written on it
searchBar.placeholder = @"Search";
[self.searchBar setPlaceholder:@"search"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With