In my application I have a UIView. User can rotate, change size, change position of this UIView. I want to capture every state of the UIView and save it in an array.
For example, user moves view, then rotate view, then resize view. I want to save all these 3 views in an array:
[mutableArray addObject:view1]; //when user moves
[mutableArray addObject:view1]; //when user rotate
[mutableArray addObject:view1]; //when user resize
But when I do this I'm getting the same UIView at its current state. How can I capture all 3 states of this UIView?