我有一个长度增加的动画矩形:
[UIView animateWithDuration:60
animations:^{
CGRect frame = left.frame;
// adjust size of frame to desired value
frame.size.height -= 0.1;
left.frame = frame; // set frame on your view to the adjusted size
}
completion:^(BOOL finished){
// Re-start the animation if desired
}];
但是,矩形只会改变它的高度,使其向下而不是向上。如何更改它以使矩形向上增长?