For iOS 7/8, when setting text options programmatically, it will be displayed as expected when compiling / building to run on the device. However, when testing my application for iOS9 in Xcode 7, all frames of my view are disabled or simply not visible due to the fact that text.font does not recognize the font. This is not a custom font as such, it is in the Apple library, and in fact, when you set a shortcut through IB, it displays correctly, but when you execute the same code in the code, it simply displays the system font. Any ideas how to get around this? This creates a pretty ugly view in iOS9, but everything still displays correctly <= iOS8.
The font in question is "Heiti TC Light"
I received a script message from the Apple Font Book and applied it accordingly:
@"STHeitiTC-Light"
Again, it works in all versions of iOS except iOS9
Using Xcode 7.0 beta 3 | iOS 9 simulator
source share