I have a png image on an object. The image is a circle filled with a color. I want to scale the object higher than wide so that the circle looks like an oval. When trying to scale the object it works fine but then if I want to rotate the oval an angle does not do it to me.
If instead I do the procedure first rotate and then climb it does it well. Why do I have to rotate before I climb?
The code that does not work is the following:
CGAffineTransform transform = tempObjeto.transform;
transform = CGAffineTransformScale(transform, escalaAncho, escalaAlto);
transform = CGAffineTransformRotate(transform, angulo);
tempObjeto.transform = transform;
And the code that works is this:
CGAffineTransform transform = tempObjeto.transform;
transform = CGAffineTransformRotate(transform, angulo);
transform = CGAffineTransformScale(transform, escalaAncho, escalaAlto);
tempObjeto.transform = transform;