Development wrote:
I am using the following to rotate an image and Im having a problem.
After the transform when I attempt to move the image it collapses to 0
width and does other unpredictable and strange things. What am I
forgetting to do so that the image is movable?
self.transform = CGAffineTransformMakeRotation(delta);
[self setNeedsDisplay];
At a guess, what you're forgetting to do is flank the rotation with
translations so you're rotating around the point you actually want to.
And note that with 2 exceptions the second translation is not just the
inverse of the first.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com