Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UISearchBar full screen

I have uisearchbar in a uiview which is already subview of a uiviewController, I want to show the search bar in full screen when search bar is edited, i need to show the searching event in full screen, how to do this? here is my screen enter image description here here i have added search bar to the tableview header view and table view is already having header view, this search bar is covering my first element in table view,

how to start table view after search bar ended?

like image 324
Charan Avatar asked Jul 02 '26 12:07

Charan


1 Answers

You can make your class a UISearchDisplayDelegate and implement the hiding/moving of the search bar in the searchDisplayControllerDidEndSearch: method. To show the search bar in fullscreen, your class should implement the UISearchBarDelegate protocol and the searchBarShouldBeginEditing: function in particular.

like image 65
Alexander Avatar answered Jul 05 '26 04:07

Alexander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!