How do I apply a perspective transform to a UIView?

I’m looking to perform a perspective transform on a UIView (such as seen in coverflow) Does anyonew know if this is possible? I’ve investigated using CALayer and have run through all the pragmatic programmer Core Animation podcasts, but I’m still no clearer on how to create this kind of transform on an iPhone. Any help, … Read more

Cancel a UIView animation?

Is it possible to cancel a UIView animation while it is in progress? Or would I have to drop to the CA level? i.e. I’ve done something like this (maybe setting an end animation action too): [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:duration]; [UIView setAnimationCurve: UIViewAnimationCurveLinear]; // other animation properties // set view properties [UIView commitAnimations]; But … Read more

UIView Infinite 360 degree rotation animation?

I’m trying to rotate a UIImageView 360 degrees, and have looked at several tutorials online. I could get none of them working, without the UIView either stopping, or jumping to a new position. How can I achieve this? The latest thing I’ve tried is: [UIView animateWithDuration:1.0 delay:0.0 options:0 animations:^{ imageToMove.transform = CGAffineTransformMakeRotation(M_PI); } completion:^(BOOL finished){ … Read more