After updating to Xcode 5.1.1, fontWithName
for custom fonts always return nil, which caused crash when setting attributes for atributedString.
I ensured my custom font is in the result of [UIFont familyNames]
and fontNamesForFamilyName
.
fontWithName
works fine if I pass in system font name eg. Helvetica
.
If there's any one encountered the same problem? Then how to solve it? Is it a bug in Xcode?