点击搜索按钮触发什么事件?

时间:2012-05-23 04:06:03

标签: iphone

当我点击键盘上的搜索按钮时,显示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;
{

}

欢迎任何评论

1 个答案:

答案 0 :(得分:1)

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


}

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