3I have an image that gets manipulated by touch.
Lets say its an image of an arrow that points up. After it's been rotated 180 degrees, so the arrow is pointing down now, I want to reset CGAffineTransform properties so that it thinks now its turned back to 0 degrees.
I want this because I have to translate, rotate, scale etc whether the image's angle is 0 OR 180.
Thanks in advance.
EDITED Ater 5 replies:
Hmm, I am not sure if any of these answers do what I wanted to. I apologize for not being clear.
- An Image with the arrow pointing up is touched and moved to right - everything is fine.
- Image is rotated with the rotation gesture and turned 180deg - everything is fine
- Image is now touched and moved to right - Since the coordinates are upside down, now the image is jumping up and down making my other animation sequences go screwy.
To prevent above problem and some other ones, I want to reset everything after it has been rotated 180. For example once the image turned 180deg, CGAffineTransform properties knows it's turned 180%. I want to reset the poperties at that time so CGAffineTransform thinks its turned 0 degrees instead of 180, eventhough the image is upside down visually. I want this to happen without any visual changes, soon as its rotated to 180deg.
Hope this is clearer....