Get Updates By E-mail 

Article Written By:
Johann Dowa

Example: Getting A Header Search Bar That Sticks Atop A Scrolling UITableView (Like Contacts)

  •  
  •  
  •  
  •  
  •  

Getting the search bar to operate desired with atop a scrolling table view can be tricky and Fabian Kreisser has created an example demonstrating how to implement the three different scrolling behaviors in this situation.

The example demonstrates how to get the scrolling behavior to mimic that found in different Apple apps including how to get the search bar to stay below the header when scrolling down like in the Contacts app.

Here are a couple of images from the example:

Table view Search Bar 1Table View Search Bar 2

You can find TableVIewSearchBar on Github here.

A nice example showing how to avoid scrolling frustration that can occur with a search bar atop a UITableView.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments