Adding a searchbar to display array items on a tableview?

Posted by skiria on Stack Overflow See other posts from Stack Overflow or by skiria
Published on 2010-05-14T22:58:50Z Indexed on 2010/05/17 1:10 UTC
Read the original article Hit count: 222

I want to build an app that shows a empty tableview. Then users can write a text on a searchbar and when they click on Search button the tableview will be written with array items founded.

I've see this tutorial: link text, but I only need to search when user click SearchButton. How can I do this? What methods do i have to use?

I've tried with this method, but it doesn't works.

- (void) searchBarSearchButtonClicked:(UISearchBar *)theSearchBar {

    NSInteger nVideos = [appDelegate.allVideos count];

    NSLog(@"number of videos: %i", nVideos);

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone