3
votes

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?

1

1 Answers

1
votes

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.