UISearchbar textfield clear button hide iOS swift

 Solution:

If typing in the textfield in search bar by default it will show clear button at the end.But if you want to disable the clear button then use the code below.


        searchBar.searchTextField.clearButtonMode = .never

Comments

Popular posts from this blog

How to blink a button iOS swift?

Convert NsNumber, NSDate to String in iOS Swift

Parse the value from string value iOS swift