Is there a way to detect if a user has click on the searchbar textfield and the keyboard has appear ?
From the docs,
searchBarTextDidBeginEditing:
searchBarCancelButtonClicked:
If you are implementing UISearchBarDelegate, the first method that should be called is:
- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar {
//do stuff
return YES;
}
Here's the class reference:
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UISearchBarDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UISearchBarDelegate/searchBarShouldBeginEditing:
Your searchbar delegate should receive a searchBarTextDidBeginEditing: message.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With