GKImagePicker
GKImagePicker copied to clipboard
the cropping is not done to the correct area
The cropped are had a shift in position from the original area the user created. To resolve the issue I did the following change:
GKImageCropper.m - changed "self.view" to refer to the "scrollView" -(void)handleDoneButton { // ********************************************** // * Define CGRect to crop // ********************************************** -// double cropAreaHorizontalOffset = self.view.frame.size.width/2.--self.cropSize.width/2.; -// double cropAreaVerticalOffset = self.view.frame.size.height/2.-self.cropSize.height/2.;
- double cropAreaHorizontalOffset = scrollView.frame.size.width/2.-self.cropSize.width/2.;
- double cropAreaVerticalOffset = scrollView.frame.size.height/2.-self.cropSize.height/2.;