The user can change the cropbox size which is shows default in edit screen. I tried with below code :
- (UIImage *)imageByCropping:(UIImage *)imageToCrop toR
CGRect clippedRect = CGRectMake(0 ,0,180 ,180); CGImageRef imageRef = CGImageCreateWithImageInRect(imgVw1.image.CGImage, clippedRect); UIImage *newImage = [UIImage imageWithCGImage:imageRef]; CGImageRelease(imageRef); imgVw1Cliped.image=newImage; NSLog(@"%d",imgVw1Cliped.image.imageOrientation);