Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Using appearance proxy to adjust all button items in a nav bar
UIOffset offset = UIOffsetMake(5,0);
[[UIBarButtonItem appearanceWhenContainedIn:MyNavBar.class, nil]
setTitlePositionAdjustment:offset
forBarMetrics:UIBarMetricsDefault];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment