Hi I have some a UIView with several user created subviews. The user can move and rotate the subviews. I'm using the transform attribute of UIView to accomplish this. I want to save the "document" in order to recreate it later.
I'm currently writing out the transform attribute out to a file along with some other data. But the transform attribute is 6 number set, instead I would like to somehow get the degrees of rotation that the user made and save that.
Is there any way to take a transform and get back out the total rotation that created the transform? Obviously as the user was moving the object around the screen, many little transforms were done.