I'm curious about something. In my app I'm running an animation where a view is resized a little bit. I'm creating the transform like this:
CGAffineTransform resize = CGAffineTransformMakeScale(0.8, 0.8);
However, when I apply this transformation to my view and watch it run, it resizes from the top and shrinks towards the bottom. What I'm wanting is where it resizes evenly on all sides and shrinks towards the center, as if an "anchor" point is in the center. You know what I'm saying? Is this possible?
First apply a CGAffineTransformMakeTranslation
to move the origin to the center -- composite them into a single transform with CGAffineTransformConcat