I use the following lines of code:
[UIView animateWithDuration:0.50
animations:^{ itemView.transform = CGAffineTransformIdentity; }
completion:^(BOOL finished) { if (finished) [itemView removeFromSuperview]; }];
The animation does nothing. If I take the removeFromSuperview out of the completion block, it doesn't work either, I guess because the view is removed before it completes. So, either way, the appearance is the same - no animation.
I'll appreciate any suggestion or workaround on this.
itemView.transformis not identity before the animation? - marouxCGAffineTransformIdentityis a transform with no change to either scale, rotation or translation. This means that unless the itemView has a transform before the animation you will animate to and from the same transform. Are you sure this is what you want? - David Rönnqvist