Persisting a single UISearchBar instance across 4 separate UITableViews
- by Jacob Relkin
Hi fellas,
I'm in the midst of an iPhone app that needs to have 4 separate UITableView objects sharing access to one UISearchBar in the first section and first row of the aforementioned UITableView objects.
I have tried to offset the UITableView's frame by 44 pixels, then adding the search bar as a subview of my UIViewController's view. That works, but I cannot use the table index to scroll up to the search bar, since it is not a cell in the tableview. I need to have the search bar in the table view itself.
My goal is to have the same UISearchBar in the first section of multiple tableviews.
Thanks so much.