【发布时间】:2014-07-23 12:20:34
【问题描述】:
我注意到UISearchDisplayDelegate 中的所有内容基本上都已弃用。既然这是教我实现搜索栏和搜索显示控制器的唯一方法,那么有什么好的解决方法?
示例代码为:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
if (tableView == self.searchDisplayController.searchResultsTableView) { // 'searchDisplayContoller' is now deprecated
return [searchList count];
} else {
return [initialList count];
}
}
【问题讨论】:
标签: ios objective-c uitableview uisearchbar