Created
July 8, 2015 21:09
-
-
Save burhanaksendir/216c446f03b09fa1e27d to your computer and use it in GitHub Desktop.
iOS - UIBarButtonItem Settings Gear
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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