Skip to content

Instantly share code, notes, and snippets.

@cbowns
Created May 3, 2012 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbowns/2588474 to your computer and use it in GitHub Desktop.
Save cbowns/2588474 to your computer and use it in GitHub Desktop.
subviewsAsAPI
// 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> }
@cbowns
Copy link
Author

cbowns commented May 3, 2012

(If you work at Apple: before you ask me for a Radar number, go read these. http://openradar.appspot.com/search?query=uisearchbar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment