I imported 2 * .ttf font files for normal and bold in xcode, installed everything in .plist, etc. - and now I can clearly see the font in the storyboard.
Unfortunately, the textviews attributes, as well as shortcuts or buttons, ignore my font when I set it in storyboard mode!
If I generate something programmatically, it works fine, for example. eg:
var testButton = UIButton()
testButton.setTitle("Abbrechen", forState: UIControlState.Normal)
testButton.backgroundColor = UIColor.blueColor()
testButton.titleLabel?.font = UIFont(name: "FaktConPro-Bold", size: 37)
testButton.tintColor = UIColor.redColor()
testButton.frame = CGRectMake(0 , 0, self.view.frame.width, 60)
view.addSubview(testButton)
any clues? iOS prefers any format?
€ dit: setting labels and text fields to “normal” instead of “attribute” temporarily fixes the problem
source
share