0

当我点击键盘显示 UISearchDisplayController 上的搜索按钮时,它会触发什么事件?

没有任何事件被触发

- (void) searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller;
{

}
- (void) searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller;
{

}
- (void) searchDisplayControllerWillEndSearch:(UISearchDisplayController *)controller;
{

}
- (void) searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller;
{

}
// called when the table is created destroyed, shown or hidden. configure as necessary.
- (void)searchDisplayController:(UISearchDisplayController *)controller didLoadSearchResultsTableView:(UITableView *)tableView;
{

}
- (void)searchDisplayController:(UISearchDisplayController *)controller willUnloadSearchResultsTableView:(UITableView *)tableView;
{

}

// called when table is shown/hidden
- (void)searchDisplayController:(UISearchDisplayController *)controller willShowSearchResultsTableView:(UITableView *)tableView;
{

}
- (void)searchDisplayController:(UISearchDisplayController *)controller didShowSearchResultsTableView:(UITableView *)tableView;
{

}
- (void)searchDisplayController:(UISearchDisplayController *)controller willHideSearchResultsTableView:(UITableView *)tableView;
{

}
- (void)searchDisplayController:(UISearchDisplayController *)controller didHideSearchResultsTableView:(UITableView *)tableView;
{

}

欢迎任何评论

4

1 回答 1

1
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar;                     // called when keyboard search button pressed
{


}

它需要使用 UISearchbar 的功能而不是 UISearchDisplayController

于 2012-05-23T05:02:03.790 回答