views:

34

answers:

1

I have a searchbox. I want to make it so when the user pushes search on there keyboard it performs and IBAction. How can i link that key to the -(IBAction)Method.

A: 

There one delegate method which is fired when search button is pressed

  • (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar

{

  //CALL YOUR IBACTION METHOD HERE

}

-Happy Coding

Suriya