iOS Developer Library — Prerelease

Developer

UIKit Framework Reference UISearchBarDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

UISearchBarDelegate

The UISearchBarDelegate protocol defines the optional methods you implement to make a UISearchBar control functional. A UISearchBar object provides the user interface for a search field on a bar, but it’s the application’s responsibility to implement the actions when buttons are tapped. At a minimum, the delegate needs to perform the actual search when text is entered in the text field.