0

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 ?

swiftBoy
  • 35,607
  • 26
  • 136
  • 135
thndrkiss
  • 4,515
  • 8
  • 57
  • 96

1 Answers1

0

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
  • 16,474
  • 17
  • 72
  • 93