views:

35

answers:

1

hi, I have a search bar and on clicking the search bar the keyboard pops up. On pressing the search button on search keyboard the keyboard should hide. How to do this ?

A: 

Basically you just need to call the resignFirstResponder method

-(IBAction)ButtonClick
{
    [txtview resignFirstResponder];
}

there are several answers to this question on StackOverFlow. Just search.

Joel