Skip to content

Instantly share code, notes, and snippets.

@burhanaksendir
Created July 8, 2015 21:09
Show Gist options
  • Save burhanaksendir/216c446f03b09fa1e27d to your computer and use it in GitHub Desktop.
Save burhanaksendir/216c446f03b09fa1e27d to your computer and use it in GitHub Desktop.
iOS - UIBarButtonItem Settings Gear
let gearTitle = NSString(string: "\u{2699}") as String
let fontStyle = [NSFontAttributeName: UIFont(name: "Avenir Next", size: 27)!]
let settingsButton = UIBarButtonItem(title: gearTitle, style: UIBarButtonItemStyle.Plain, target: self, action: Selector("showSettingsVC:"))
settingsButton.setTitleTextAttributes(fontStyle, forState: UIControlState.Normal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment