How to put a placeholder text besides the text entered by user in the UISearchBar Text.
Or even to put some text in gray if the above cannot work.
You can make gray texl as UILabel and put it on UISearchBar as subview. Or you can write your own class, subclassing UISearchBar with this functional.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.