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


source to share





All Articles