Warum schlägt Kerning für NSAttributedString in IOS7 fehl?

Meine App verfügt über ein UILabel, das als NSAttributedString mit dem Attribut "NSKernAttributeName @ 1.9" formatiert ist.

Wenn der folgende Code auf einem iPad mit IOS6 kompiliert wird, funktioniert der Kern wie erwartet.Beim Kompilieren auf einem iPad mit IOS7 tritt kein Kerning auf.

Ich habe einen Fehler auf der Apple Developer Site gemeldet. # 15108371 - Noch keine Antwort

NSString *formattedNumber;
NSNumber *scoreNum = [[NSNumber alloc] initWithLongLong:thisScore];
NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
formatter.numberStyle = NSNumberFormatterPadBeforeSuffix;
formatter.formatWidth = 10;
formatter.paddingCharacter = @"0";
formatter.numberStyle = NSNumberFormatterDecimalStyle;
formatter.usesGroupingSeparator = NO;
formattedNumber = [formatter stringFromNumber:scoreNum];

//Creat atributed string of formated number.
NSShadow *textShadow = [[NSShadow alloc] init];
textShadow.shadowColor = [UIColor colorWithRed:0.5 green:0.7 blue:1 alpha:1.0];
textShadow.shadowBlurRadius = 5.0;
textShadow.shadowOffset = CGSizeMake(0,0);

NSAttributedString  *pHighScoreStyle = [[NSAttributedString alloc] initWithString:formattedNumber attributes: @{
             NSFontAttributeName: [UIFont fontWithName:@"courier" size:16],
  NSForegroundColorAttributeName: [UIColor colorWithRed:0.6 green:0.8 blue:1.0 alpha:0.8],
             NSKernAttributeName: @1.9,
            NSShadowAttributeName: textShadow    }   ];

//Change the disply value.
runningScore.attributedText = pHighScoreStyle;

Antworten auf die Frage(1)

Ihre Antwort auf die Frage