In past, I followed a little tutorial to achieve a UISearchBar in my UITableView.
It was made of arrays. Now that I have .plist file which handles everything, how would the searchBar be?
I mean, I did something like:
copyLists = [[NSMutableArray alloc] initWithArray:sortedList copyItems:YES];
Where sortedList is the array which contains the plist.
Basically the searchBar works fine, but when I type in a word, it doesn’t show any cells, even if I write the exact name of a cell.
Should it return the key name contained in the plist which is the name of the cell?
How would the searchBar change with plists?
make sure your
Search Bar and Search Display Controllerdelegateare set right. Then for displaying the cell use:and change the logic for
rowCount,titleHeader, etc.