telly / TLYShyNavBar

Unlike all those arrogant UINavigationBar, this one is shy and humble! Easily create auto-scrolling navigation bars!
MIT License
3.73k stars 427 forks source link

UISearchBar as UITableView header problem #155

Open kientux opened 8 years ago

kientux commented 8 years ago

When I use UISearchBar as UITableView tableHeaderView, when scrolling up the first time, navigation bar will hide immediately instead of fading out. It won't happen next times I scroll up. I used the latest code.

My temporary fix is hiding the search bar first by setting the table view content offset:

[_tableView setContentOffset:CGPointMake(0, 44)];