This may be an odd question but I have a tableview with a list of company names. There is a search bar that basically filters the tableview. However, there are several employee names associated with each company, but is not listed in the tableview. I need to be able to use the search to find the companies that have the associated names that the person searches.
Here is how I'm currently creating my table...
tableModel = [[SCArrayOfStringsModel alloc] initWithTableView:self.tableView withViewController:self withItems:dataAry];
tableModel.allowAddingItems = FALSE;
tableModel.allowDeletingItems = FALSE;
tableModel.allowMovingItems = FALSE;
tableModel.allowEditDetailView = FALSE;
tableModel.detailViewHidesBottomBar = FALSE;
tableModel.searchBar = self.searchBar;
tableModel.autoSortSections = TRUE;
tableModel.autoGenerateSectionIndexTitles = YES;
so the dataAry is just an array of strings containing the company names and the searchBar filters those names. But behind the senes, there are employees names associated with each company but this tableModel doesn't know anything about them. What would I do to allow the searchBar to search company names as well as employee names? Thanks.