开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜