Hi I am new to xcode development I am creating a simple application. In that I have table view Controller with on Search bar control. onClick of Search bar Key board comes up I am not able to hide the key board. I tried to Hide it by
(void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
{
[self resignFirstResponder];
[self.searchbar setShowsCancelButton: NO animated: YES];
}
but It is not working.
To hide keyboard, you should lose focus on the text input, not the class instance itself (self)
In your case, you should do