Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

marsela meco
511 Points#search bar
how do i put a search bar in a table view controller to search for many many friends in iOS Xcode??????
1 Answer

Stone Preston
42,016 PointsIn storyboard, drag a search bar from the object library onto your view controller. Hook it up in your .h file as an outlet. You also need to conform to the UISearchBar delegate protocol (put <UISearchBarDelegate>
after the subclass name in your .h). In view did load, set your view controller as the search bars delegate (something like self.searchBar.delegate = self;
) and implement whichever delegate methods you want to use. They can be found here