I am using a UISearchDisplayController
the default way to filter the cells of a UITableViewController
by its text values (e.g. to show only the cells which start with the letters 'ab'). The values in the cells of the table view are filled by a NSFetchedResultsController
.
In addition to this text based filtering, I would like to add additional filtering capabilities based on the numeric range of the items (e.g. I am currently filtering by the name of persons and would like to apply an additional filter to show only those persons in the range specified).
For this reason I can't use the default search scope buttons, but would need to add additional views and buttons, e.g. for filtering by age (Age > 18
and Age < 35
: one label and two text fields).
What would be the recommended view to add additional labels and text fields to an existing UISearchDisplayController
(if possible in combination with its default UISearchDisplayDelegate
) in your view?
Thank you!