Nauman.Khattak
Nauman.Khattak

Reputation: 641

how to call a method in UISearchBar

i want that when user input in search box then

this text is store in global variable and a method is called which in another class ,how should i do this..... any idea please

Thanks.....

Upvotes: 1

Views: 134

Answers (1)

samsam
samsam

Reputation: 3125

You have to implement the UISearchBarDelegate Protocol

if you want to react on a finished input by user (read: after the user wrote something into the searchbar's textfield and pressed "search" on the keyboard) you have to implement

- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar

Upvotes: 2

Related Questions