如何在obj c中为搜索键盘添加搜索按钮的事件处理程序,提前用于iphone应用程序
Assuming you're using a UISearchBar
, you should assign it a delegate object. That delegate should conform to UISearchBarDelegate
protocol , and then you can implement:
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.