dzenbot / DZNPhotoPickerController

A photo search/picker for iOS using popular image providers like 500px, Flickr, Instagram, Giphy, Google & Bing Images
https://www.cocoacontrols.com/controls/dznphotopickercontroller
MIT License
1.51k stars 266 forks source link

DZNPhotoEditorViewControllerCropModeCustom frame error #85

Open JackDPro opened 9 years ago

JackDPro commented 9 years ago

The code is

    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    picker.allowsEditing = YES;
    picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
    picker.delegate = self;
    picker.cropSize = CGSizeMake(112, 152);
    picker.cropMode = DZNPhotoEditorViewControllerCropModeCustom;

But the custom cropView is not as i want

bug

dzenbot commented 9 years ago

What device is this? iPhone6?

joslinm commented 9 years ago

I just came here to say this. I'm running this on the iPhone 5s simulator and seeing it.

JackDPro commented 9 years ago

iPhone5 and simulator

andrewjaykeller commented 9 years ago

My output does not match what was within my crop circle. Is this your problem too? Running iPad 2 iOS 8.4.1

andrewjaykeller commented 9 years ago

simulator screen shot aug 21 2015 12 28 56 pm simulator screen shot aug 21 2015 12 29 00 pm

dzenbot commented 9 years ago

@pushtheworldllc This hasn't been specified in the documentation, but you should never present the cropper fullscreen on iPad, but in a popover like you would do with the native UIImagePickerController. Also, try setting it with a 320pts content width.