is there anyway i can use search bar on the nsmutable array . i have data like this :
[listOfItems addObject:[NSArray arrayWithObjects:
@"Pakistan",
@A country with lot of salt mines",
nil]
];
i m displaying Pakistan on a table view and when click on it i went on the other view with in info about it.
i seen search-bar with array and dictionary but couldn’t found on mutable array please help.
thanks in advance
There is delegate method in searchbar that can help you like:
-(void) searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchTextThen you can use predicate to filter data