objective c - reset transformation of UIImageView - objc -


i have 2 imageviews transformed this:

- (void)handletap:(uitapgesturerecognizer *)taprecognize {     if (taprecognize == taprecognizer)     {         cgaffinetransform transform = cgaffinetransformrotate(lineimage.transform, (m_pi /  4));         [image1 settransform:transform];     }     if (taprecognize == taprecognizer2)     {         cgaffinetransform transform = cgaffinetransformrotate(lineimage2.transform, (m_pi / 4));         [image2 settransform:transform];     } }     

i have added taprecognizer imageviews. question how can reset transform, in case rotation when button pressed. set original mode. how can this?

set transform property identity matrix


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -