rotate UIImage based on rotation of UIView
rotate UIImage based on rotation of UIView
- Subject: rotate UIImage based on rotation of UIView
- From: Allyn Bauer <email@hidden>
- Date: Thu, 2 Dec 2010 10:22:10 -0600
Hello,
I am creating an iPad application for my employer targeted to 3.2 and above. In it, the user has the ability to move, rotate and resize an image which then gets sent to our server. The image is displayed with a UIImageView which is wrapped with a UIView. This outer UIView is the one which has the appropriate gesture responders attached and also is the one that gets resized/moved/rotated. The image view inside it simply expands to fill the whole outer frame. In this way, the original image is not modified until after all the resizing/rotation/actions have taken place. At that point I then attempt to apply the changes to it and send it to our server.
I have tried to get this working, but I'm afraid I haven't been able to. Here is the code I have so far:
http://pastie.org/1341720
It doesn't manage to get the correct crop of the rotated image. Occasionally (often) it won't have any of the image at all. I suspect that the issue is the result of a fundamental misunderstanding of something on my part, but I can't figure out what that would be. Any help with the code or advice on the problem would be absolutely fantastic.
Regards,
Allyn Bauer
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden