Instance Property

delegate

The search bar’s delegate object.

Declaration

@property(nonatomic, weak) id<UISearchBarDelegate> delegate;

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

UISearchBarDelegate

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