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);