views:

40

answers:

2

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!

A: 

Aha, figured this one out. I was doing some custom drawing and had mixed up frame and bounds.

Elon
Hi, could you expand on your answer/question? This question is highly ranked on the Google. The whole world is watching ;)
jamesh
A: 

Depending on your circumstances, you can try CGAffineTransformMakeTranslation(0, 0) in the same block.

Rafif Yalda