Skip to content

Instantly share code, notes, and snippets.

@yfujiki
Created August 20, 2013 23:04
Show Gist options
  • Save yfujiki/6288465 to your computer and use it in GitHub Desktop.
Save yfujiki/6288465 to your computer and use it in GitHub Desktop.
Override back button without bullet frame
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle: @" " style:UIBarButtonItemStylePlain target:nil action:nil];
self.navigationItem.backBarButtonItem = backButton;
UIImage *backButtonImage = [[UIImage imageNamed: @"img-arrow-left"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 4, 0, 36)];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:backButtonImage forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment