Ich versuche backgroundColor
Eigenschaft der UILabel-Klasse zu animieren und bisher nicht erfolgreich. Hier ist der Ausschnitt aus meinem CodeWas ist eigentlich in UILabel animierbar?
-(void) blink {
UIColor* originalColor = lblDescription.backgroundColor;
lblDescription.backgroundColor = [UIColor yellowColor];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
lblDescription.backgroundColor = originalColor;
[UIView commitAnimations];
}
//this code works if lblDescription is UIView and does not if UILabel
fand ich einige Behauptungen, dass einige UILabel Eigenschaften nicht animierbar sind, aber ich konnte nicht diese Behauptung untermauern durch das Lesen von Apple docs. Ich habe mich gefragt, ob jemand dieses Problem aufklären kann.
Gute Frage. Die meiste Zeit versuche ich nur zu wissen, ob es animierbar ist ... – gcamp