UISearchBar 点击X 按钮收键盘

- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText;{
NSLog(@"textDidChange---%@",searchBar.text); if (searchBar.text.length == ) {
[self performSelector:@selector(hideKeyboardWithSearchBar:) withObject:searchBar afterDelay:];
} } - (void)hideKeyboardWithSearchBar:(UISearchBar *)searchBar
{
[searchBar resignFirstResponder];
}
上一篇:python css概述


下一篇:7816的报文结构——APDU