开发者

Set title for UIPopoverController containing results for UISearchDisplayController for UISearchBar in iPad

开发者 https://www.devze.com 2023-01-08 03:54 出处:网络
When using UISearchDisplayController with a UISearchBar in iPad, the default behavior is to display the results in a UIPopoverController with the title \"Result开发者_Go百科s\". How can I change the t

When using UISearchDisplayController with a UISearchBar in iPad, the default behavior is to display the results in a UIPopoverController with the title "Result开发者_Go百科s". How can I change the title? E.g. in the iPad App store, when you search, the popover's title is "Suggestions".


I was told this couldn't be done by an Apple rep. You'll have to create your own UIPopoverController instance.


Try UISearchDisplayController's searchResultsTitle method to set your iPad popover search results title.

0

精彩评论

暂无评论...
验证码 换一张
取 消