KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When increasing the height of label, everything is fine and smooth. When decreaseing, the label is instantly changing the size then repositioning with animation. @interface @property (nonatomic, retain) IBOutlet UILabel *explanationLabel; @implementation CGRect frmExpl = explanationLabel.frame; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.75]; frmExpl.size.height -= height; explanationLabel.frame = frmExpl; [UIView commitAnimations]; I've tried replacing UILabel with UIView and of course there is no such problem with UIView. Is there any special way to animate UILabel size decrease? Here is a minimal project demonstrating the issue described. Download
Tags (comma-separated)
Save Edits
Cancel