insane transformations of a view

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-04-17T16:09:39Z Indexed on 2010/04/17 16:13 UTC
Read the original article Hit count: 249

Filed under:
|
|
|

I have this view and I do some rotation transformation to it using something like

myView.transform = CGAffineTransformMakeRotation(degreesToRadian(90));
//The view was originally at angle 0.

at some other point of my code, I would like to scale the view animating it, so I do

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
myViews.transform = CGAffineTransformMakeScale(2.0f, 2.0f);
[UIView commitAnimations];

but when I do that the animation is performed as the view is at 0 degrees, ignoring the previous transformation. It simply assumes as the view is yet at zero degrees, so, this animation scales the view and rotates it back to 0 degrees (!!!!?????)

Is this some bug or am I missing something? thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk