Skip to content

Instantly share code, notes, and snippets.

@justincbeck
Created April 2, 2014 17:12
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 justincbeck/9938574 to your computer and use it in GitHub Desktop.
Save justincbeck/9938574 to your computer and use it in GitHub Desktop.
AppDelegate - Setting the appearance proxies for UIBarButtonItems
// UIBarButtonItem Appearance
NSMutableDictionary *barButtonItemAttributes = [NSMutableDictionary dictionary];
[barButtonItemAttributes setValue:[UIFont fontWithName:@"AvenirNextCondensed-Regular" size:20.0] forKey:NSFontAttributeName];
[[UIBarButtonItem appearance] setTitleTextAttributes:barButtonItemAttributes forState:UIControlStateNormal];
[[UIBarButtonItem appearance] setTitleTextAttributes:barButtonItemAttributes forState:UIControlStateHighlighted];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment