Table View Header Hiding
I want to replicate the hiding functionality that you get by using a UISearchBarController with a UISearchBar in a table's header view, but with a custom view. To be specific I can't see how to let the header view freely scroll in and out the the view even when the table view's content size is too small to need scrolling. An example of this is if you go to a view in mail with no messages, you can still scroll the search bar out of the view. I've tried some tricks with checking the contentSize property on the UITableView and resizing it so that it will always scroll, but this is a hack at best and often gets messed up when the tabel view reloads some data. Also I notice that in the mail app there is no scroll indicators, if the view does not need them, will still letting the header view scroll off. This leads me to believe that I need to work with something other than the contentSize property.
Anyone know how to do this?
|