简体   繁体   中英

How much a UIImageView rotated?

I have an UIImageView that is being pinched, zoomed, rotated, etc. When the user ends transforming the image he presses the DONE button and I have to figure out how much the object was scaled and rotated.

All I know is the angle and scale of the object before the user started modifying it. Now I need the new angle and scale.

How to do that? If you can point to a code, it will help.

thanks

I suggest to keep a track of all changes made. If the user pinches zooms,etc, it means that the app will calculate the rotation and zooming for every touch the user does right? So, Why don't use the last touch to know the rotation and zoom? You could update your zoom and rotation variable every time the user does a touch. Regards Ignacio

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM