Thread: Search Bar
View Single Post
  #2 (permalink)  
Old March 15th, 2012, 09:34 AM
thepianoguy thepianoguy is offline
Friend of Wrox
Points: 1,671, Level: 16
Points: 1,671, Level: 16 Points: 1,671, Level: 16 Points: 1,671, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

Do you have the code that you attempted to use to implement the search? Basically you need to add a UISearchBar and UISearchDisplayController and a separate array for handling the filtered elements of your table.
You display the SearchDisplay tableView when searching and the main tableView when not searching.

The book does not implement UISearchDisplayController since I don't believe it was available yet, but that is a better approach.

If you check the documentation for the UISearchDisplayController there is an example that should point you in the right direction.

Bob
The Following User Says Thank You to thepianoguy For This Useful Post:
Jule (March 15th, 2012)