UILabels does not display NSAtrributedStrings with custom fonts set in Interface Builder

When I install a custom font on a plain UILabel using the Interface Builder everything works fine. It displays correctly on IB, simulator, and device.

When I do the UILabel attribute it correctly displays the custom font in IB, but it doesn't work in the simulator or on the device. It just falls back to the system default font.

I have heard that other people have this problem. Has anyone found a solution?

Notes:

  • My job was to just use simple shortcuts and update programmatically.
  • My fonts load as expected because they work when I create the label programmatically and work with regular UILabels.
  • Found this in xCode 6 and xCode 6.1 beta targeting iOS 8
+3
objective-c uilabel ios8 xcode6 nsattributedstring


source to share


No one has answered this question yet

Check out similar questions:

560
Xcode error 6: Unknown class in Interface Builder file
103
Custom font size in Xcode 6 size classes does not work as expected with custom fonts
95
Attribute string with custom fonts in storyboard not loading correctly
54
Setting up BOLD font on iOS UILabel
3
Custom fonts working in Interface Builder (Xcode 6), but not devices
2
Returnable font for UILabel on iOS 4?
1
The difference is how the UILabel is displayed in the interface designer and in the simulator
1
Custom UILabel not showing as expected in Interface Builder
0
Custom UILabel does not display text
0
Custom font in Xcode 6 UI Builder



All Articles
Loading...
X
Show
Funny
Dev
Pics