[UIView animateWithDuration:30.0f delay:0.0f options:UIViewAnimationOptionCurveEaseInOut animations:^{
v.contentMode = UIViewContentModeScaleAspectFit;
v.frame = v.superview.bounds;
} completion:^(BOOL finished) {
[v removeFromSuperview];
}];
I want a UIImageView to resize and change the contentMode, but the code above doesn't work. It changed the contentMode immediately at the beginning of the animation.
Is there any way to animate it?