Gaurav Thummar
Gaurav Thummar

Reputation: 780

Image Resize when rotate using UIRotationGestureRecognizer in iphone application

I add One ScrollView in that i put image when i resize image using viewForZoomingInScrollView after that i Rotate image using UIRotationGestureRecognizer at that time image getting resize automatically so any solution for this problem.

here i put code for zoom and rotate: - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{ return Photo; }

/*In response to a rotation gesture, show the image view at the rotation given by the recognizer, then make it fade out in place while rotating back to horizontal. */ - (void)handleRotationFrom:(UIRotationGestureRecognizer *)recognizer {

CGAffineTransform transform = CGAffineTransformMakeRotation([recognizer rotation]);
Photo.transform = transform;    

}

Upvotes: 1

Views: 791

Answers (1)

Gaurav Thummar
Gaurav Thummar

Reputation: 780

Implement class EditImageView

handle touch over there for tracking touch.

Upvotes: 1

Related Questions