Created
May 3, 2012 19:24
-
-
Save cbowns/2588474 to your computer and use it in GitHub Desktop.
subviewsAsAPI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Please don’t do this. | |
// Need to change UISearchBar’s cancel button text? | |
// Well, there’s no API for that. | |
// (Sorry UIKit.) | |
UISearchBar *searchBar = [self.searchDisplayController searchBar]; | |
for (UIView *view in [searchBar subviews]) { … <left as an exercise to the adventurous> } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(If you work at Apple: before you ask me for a Radar number, go read these. http://openradar.appspot.com/search?query=uisearchbar)