Animating NSMutableAttributedString color - the string disappears
问题 I have a layer and in its drawInContext: I draw an attributed string with drawInRect: . Here's how I initialise the layer. + (id)layer { Character *layer = [[self alloc] init]; if (layer) { NSDictionary *attributes = @{NSFontAttributeName: [UIFont fontWithName:@"Fabada" size:72]}; layer.symbol = [[NSMutableAttributedString alloc] initWithString:@"X" attributes:attributes]; } return layer; } I want to animate the string's color, so I have three dynamics properties. @interface Character :