views:

305

answers:

0

I have a view that does 1 simple thing: draws an image. I can rotate the image like this:

CGAffineTransform transform = CGAffineTransformMakeRotation((CGFloat)radians); self.transform = transform; // WORKS: DRAWS, ROTATES

But if I delegate the image-drawing function to a subview, and apply the rotation transform to the subview:

CGAffineTransform transform = CGAffineTransformMakeRotation((CGFloat)radians); self.imageView.transform = transform; // DOESN'T WORK: DRAWS, BUT NO ROTATE

I get the image drawn, but no rotation. Why?

FWIW the "self" view is an MKAnnotationView.