ios - Add filter button to UISearchController -
i want add "filter" or "sort" button next searchbar inside uisearchcontroller. have tried add uibutton , searchbar uiview , set uitableview tableview.tableheaderview not work because tableview.tableheaderview get's set uisearchbar when dismissing controller. here example of how want look:
instead of customising uisearchbar , complicating things, can keep simple adding own button beside searchbar.
set no shows cancel button option searchbar using
self.searchbar.showscancelbutton = true or
uncheck shows cancel button option searchbar in storyboard
add own button beside searchbar shown below
and accordingly add ibaction button , perform actions in it.
also in ideal case, not recommendable put view in header of tableview. better if above tableview followed apple.



Comments
Post a Comment