Searchbar to search array items and displays them 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:20 UTC
Read the original article
Hit count: 323
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