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
Post a Comment