How can I set the default text in the search bar that looks gray so that it can hint at what you might be looking for before the user touches the search bar so that he can write something?
For example, I could “search for cafes or restaurants,” and when I touch UISearchBar, the text disappears?
source
share