I am building a tableview with search bar on the navigation, additionally the user needs to be shown more filter options narrow down his search results.
Trying to figure out how to implement a search on uitableview with a second screen with more filter options for the user.
So far: I have created a uitableview and used a UISearchBar to get the basic search in place, have added a 'filter' button the navigation bar, the button opens up a uiview that shows the filter options to the user.
My questions are:
1/ How do I transfer the selected options back to the main uitableview so that a search can be done using the additional search filters.
2/ I have seen a few queries on SO on discussions around the 2 screen approach for advanced filter search, it would be great if someone could share an example or tutorial link of how it can be implemented in objective c.
Any pointers on how the implementation can be done will be greatly appreciated.
Have added images,
screen 1: https://i.stack.imgur.com/2W7cS.jpg screen 2: https://i.stack.imgur.com/rqzt1.jpg
screen 1, main uitableview with search bar and 'filters' button screen 2, advanced filters view that opens as a modal, 'Apply Filters' button should take the user back to screen 1 and show the filtered results.
screen 1 and 2 and connected by segue.