Persisting a single UISearchBar instance across 4 separate UITableViews

Posted by Jacob Relkin on Stack Overflow See other posts from Stack Overflow or by Jacob Relkin
Published on 2010-04-04T05:18:05Z Indexed on 2010/04/04 5:23 UTC
Read the original article Hit count: 266

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.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch