标签:style class blog c code java
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText;{ NSLog(@"textDidChange---%@",searchBar.text); if (searchBar.text.length == 0) { [self performSelector:@selector(hideKeyboardWithSearchBar:) withObject:searchBar afterDelay:0]; } } - (void)hideKeyboardWithSearchBar:(UISearchBar *)searchBar { [searchBar resignFirstResponder]; }
UISearchBar 点击X 按钮收键盘,布布扣,bubuko.com
标签:style class blog c code java
原文地址:http://www.cnblogs.com/joesen/p/3751255.html