Sunday, December 1, 2013

How to add a button in UISearchBar.

Shows Scope Bar has a property can increase the hook, but I do not know how to set the text on the button. Looks like there is no property can have access to, so this method should not do it.
How to do it. Leave prawn. .
Reply:
UISearchBar is a subclass of UIView, adding that in the past the button above, then it is easy.


scopeButtonTitles This attribute is used to set the button above the text.

No comments:

Post a Comment