Full screen UISearchBar

I have a uisearchbar in a uiview that is already subordinate to a uiviewController, I want to show the search bar in full screen, when the search bar is edited, I need to show the search event in full screen, how to do this? here is my screen enter image description here here i have added a search bar to the table header view and there is already a header in the table view, this search bar covers my first item in the table view,

how to start table scan after search string ends?

+3


source to share


1 answer


You can make your class a UISearchDisplayDelegate

and implement hiding / moving the search string in the method searchDisplayControllerDidEndSearch:

. To show the search bar in full screen mode, your class must implement the protocol UISearchBarDelegate

and function searchBarShouldBeginEditing:

in particular.



+1


source







All Articles