What happened to “HelveticaNeue-Italic” on iOS 7.0.3

后端 未结 10 1497
说谎
说谎 2020-12-07 09:19

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         


        
相关标签:
10条回答
  • 2020-12-07 09:59

    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.

    0 讨论(0)
  • 2020-12-07 10:02

    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 
    
    0 讨论(0)
  • 2020-12-07 10:06

    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.

    0 讨论(0)
  • 2020-12-07 10:07

    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.

    0 讨论(0)
提交回复
热议问题