Instance Property

delegate

The search bar’s delegate object.

Declaration

weak var delegate: UISearchBarDelegate? { get set }

Discussion

The delegate should conform to the UISearchBarDelegate protocol. Set this property to further modify the behavior. The default value is nil.

See Also

Handling Search Bar Interactions

protocol UISearchBarDelegate

A collection of optional methods that you implement to make a search bar control functional.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software