isarathg
isarathg

Reputation: 878

Using bookmark button in UISearchbar

How can we use the bookmark button that appears in UISearchbar? I didn't find any delegate methods for that.

Upvotes: 8

Views: 5281

Answers (1)

Felixs
Felixs

Reputation: 832

searchBar.showsBookmarkButton = YES;

And then you can use the delegate method for when it is clicked:

- (void)searchBarBookmarkButtonClicked:(UISearchBar *)searchBar

Upvotes: 14

Related Questions