|
我要输入关键字后搜索,所以要按回车后触发搜索事件 |
|
50分 |
你上面用的是个UISearchBar, 还是个UITextField. 如果是UITextFiled ,可以通过实现UITextField 的代理方法
-(BOOL)textFieldShouldReturn:(UITextField *)textField{
/////todo your logic.
return YES;
}
|
50分 |
textFieldShouldReturn 是正解
|