Skip to content

Instantly share code, notes, and snippets.

@wavecos
Created April 19, 2016 20:16
Show Gist options
  • Save wavecos/975e8a2a5c8e3e3a45d3ac848c9e4def to your computer and use it in GitHub Desktop.
Save wavecos/975e8a2a5c8e3e3a45d3ac848c9e4def to your computer and use it in GitHub Desktop.

Remove Title for all UIBarButtonItem (NavigationBar)

  func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
...
    // UI Setup
    let barAppearace = UIBarButtonItem.appearance()
    barAppearace.setBackButtonTitlePositionAdjustment(UIOffsetMake(0, -60), forBarMetrics:UIBarMetrics.Default)
...
    return true
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment