I've done some searching that hasn't helped me find the answer I am looking for.
My app has a UITabBarController which allows the user to switch between screens.
There are two screens
Tab1: viewController A - which is a subclass of UIViewController
. It has a UiSearchBar at the top and other non-related content below.
Tab2: viewController B - is a subclass of UITableViewController
and also conforms to the UISearchBarDelegate
and UISearchDisplayControllerDelegate
.
This view has a UISearchBar and DisplayController
at the top.
The is what I want to get working in my app:
When the user starts a search in viewController A - some results will show below the search bar. Then, when the user taps a search result then viewController B will appear on screen and show the results. This will allow me to filter and arrange results as I see fit.
If anyone has seen the latest version of the eBay iOS app - the searching function is what i am trying to get working.
*The Problem *
I am not worried about how the search works and how filtering works, etc. What I want to know is how do i link the first UISearchBar to display results and take the user to viewController B - with their search terms?
If I look at eBay app - its almost like the bar is the same instance as it keeps the search text.
If anyone can point me in the right direction, I'd really appreciate it.
Thank you!