How to create a searchable UITableView (2014)

In this course I will show you how to create a searchable table view in Xcode 5.1 and iOS 7. The app will also be compatible with iOS 6.

There are six parts in total:

  • Part 1: an overview of what we’d like to achieve
  • Part 2: we’ll build the table view and populate it with dummy data
  • Part 3: hooking up the UISearchDisplayController
  • Part 4: displaying search results
  • Part 5: hiding the UISearchBar when the app launches (and activating it with a button)
  • Part 6: hiding the search bar in iOS 6

The whole course is about one hour in total. Enjoy!

Part 1: Overview

Part 2: Building the UITableView

Part 3: The UISearchDisplayController

Part 4: Displaying the Search Results

Part 5: Hiding the Search Bar in iOS7

Part 5: Hiding the Search Bar in iOS6 and lower

Source Code on GitHub

Check out the full project source code here:

 

2 thoughts on “How to create a searchable UITableView (2014)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.