search button in search keyboard
I have a search bar and on clicking the search bar the keyboard pops up. On pressing the sear开发者_如何学Cch button on search keyboard the keyboard should hide. How to do this ?
Basically you just need to call the resignFirstResponder method
-(IBAction)ButtonClick
{
[txtview resignFirstResponder];
}
there are several answers to this question on StackOverFlow. Just search.
精彩评论