I want to add the UISegmentedControl
below the searchBar
and above the TableView of UISearchDisplayController
. Currently UISearchDisplayController
only shows its tableView
under its SearchBar
.
But i want to add a UISegmentedControl
below the SearchBar
so that I have SearchBar
on the top, after SearchBar
I have a UISegmentedControl
and below that UISegmentedControl
I have UITableView
. Is that any way to do this using UISearchDisplayController
or i have to make my own SearchDisplayController
that have its own SearchBar
, UISegmentedControl
and TableView
?
any suggestion? Thanks
Enable
ShowScopeBar
and add as many as segments by adding scop titles and handle them by following methodBy Code
By XIB
Delegate method to handle scope button action
I find the solution for my Problem that i added the UISegmentedControl as a Header of TableView of UISearchDisplayController. In this way it just looked like that i have added a UISegmentedControl Separately under the searchBar of UISearchDisplayController.
Thank You every one who tried to help.
Create a view in table
Addsearchbar view in that view.
Use UISegmentedControl in this searchview.