Ron*_*Ron 6 uisearchdisplaycontroller ios
我正在实现一个UISearchDisplayController,我想searchResultsTableView在加载文本之前填充tableView(未过滤)的内容 - 在输入文本之前.
这在我开始在searchBar中输入值时有效.
- (void)searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller {
self.isSearching = YES;
//tell the searchDisplayTableView to show here!
[controller.searchBar setShowsCancelButton:YES animated:YES];
}
- (void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller {
self.isSearching = NO;
[controller.searchBar setShowsCancelButton:NO animated:YES];
}
Run Code Online (Sandbox Code Playgroud)
有人会指出正确的方向吗?
请不要回答"不要那样做"或"Apple没有设计控制方式".要么 ...
| 归档时间: |
|
| 查看次数: |
2925 次 |
| 最近记录: |