Possible Duplicate:
How to use CGAffineTransformMakeRotation?
I have an imageview that acts like a button, I am looking for a way to show the user that he clicked on it, I came up with this code that will rotate it a bit :
float angle = 60.0;
[UIView animateWithDuration:0.5f animations:^{
customimageView.transform = CGAffineTransformMakeRotation(angle);
}];
but its not doing the behavior I am looking fpr. Anyone know how can I make the imagekinda zoom in ( or enlarge/ blowup ) to maybe 1.5 its size on its click? what kind of animation is relevant here? feel free to share behaviors you guys thought was cool in this situation.
Thanks.
As a side note, how can I make it just rotate full circle? I tried passing in 360 but its not doing it??