I noticed that basically everything in UISearchDisplayDelegate is deprecated. Being as how it was the only way I was taught to implement a Search Bar and Search Display Controller, what would be a good work-around?
Sample code being:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
if (tableView == self.searchDisplayController.searchResultsTableView) { // 'searchDisplayContoller' is now deprecated
return [searchList count];
} else {
return [initialList count];
}
}
UISearchController
should be replacing it...
Class reference: https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISearchController/index.html
Apple's notes about replacement, scroll to UIKit Framework section: https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS8.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With