Just upgraded my iPod touch to iOS 7.0.3 and \"HelveticaNeue-Italic\" seems to have disappeared. When I query on the phone with:
[UIFont fontNamesForFamilyN
It is my belief that it is a bug. I have filed it as such with Apple. Sadly for me, my app is now crashing. The font is used in a 3rd party library I am using. Many folks on Twitter are reporting problems.
I had a same crash which used be to crash in iOS 7.0.3 & 7.0.4 only, and works perfectly in all other versions. After so much investigation, I came to know that @"HelveticaNeue-Italic" is not available in iOS 7.0.3 & 7.0.4 versions, so that I used to get above crash in those versions.
I have fixed the issue with below code, this might helpful to someone needy.
self.headerFont = [UIFont fontWithName:@"HelveticaNeue-Italic" size:16.0f];
if (self.headerFont == nil) {
self.headerFont = [UIFont fontWithName:@"HelveticaNeue" size:16.0f];
}
The crash log is:
[__NSCFConstantString pointSize]: unrecognized selector sent to instance
If you are dynamically accessing the italic font then instead of accessing the font by name
[UIFont fontWithName:@"HelveticaNeue-Italic" size:15.0f]
use [UIFont italicSystemFontOfSize:15.0f]
this is working fine for me.
The bug report I filed with Apple has been marked "Closed as duplicate". I am hopeful that means they do consider it a bug. However, iOS 7.0.4 does not fix the bug.