ios

A collection of 19 posts

ios

Programmatic search in iOS

Code Sample: @interface MyViewController @property (strong, nonatomic) NSArray *venues; @property (strong, nonatomic) NSArray *searchResults; @end - (void)loadView { [super loadView]; UISearchBar *searchBar = [[UISearchBar alloc]init]; self.searchController = [[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self]; self.searchController.searchResultsDelegate = self; self.searchController.searchResultsDataSource = self; self.searchController.delegate