I want to change the font of UISegmentedControl
without changing the font size.
This is my code but, obviously, in this case i change the font size too:
let attr = NSDictionary(object: UIFont(name: "Avenir", size: 12.0)!, forKey: NSFontAttributeName)
segmentedControl.setTitleTextAttributes(attr as [NSObject : AnyObject] , forState: .Normal)
How can I solve this?