This should be an easy one -- when I use a CGAffineTransformMakeScale on a UIView with width and height = 0.5, it shrinks to the upper left. I need it to shrink around its center. What do I need to do? Thanks!
views:
40answers:
2
A:
Aha, figured this one out. I was doing some custom drawing and had mixed up frame and bounds.
Elon
2010-05-04 07:19:36
Hi, could you expand on your answer/question? This question is highly ranked on the Google. The whole world is watching ;)
jamesh
2010-06-02 15:58:36
A:
Depending on your circumstances, you can try CGAffineTransformMakeTranslation(0, 0)
in the same block.
Rafif Yalda
2010-06-27 13:06:04