Skip to content

Enables a custom crop rect for UIImagePickerController

License

Notifications You must be signed in to change notification settings

abpopov/GKImagePicker

 
 

Repository files navigation

GKImagePicker

This fork is a minor update to @pixelshipper's fork of GKImagePicker. It corrects an issue with iPhone 6 devices, and allows the developer to set ratio limits on the resizable crop size.

Original description:

A fork of GKImagePicker by @gekitz, taking off in a slightly different tangent. Notable changes to it are:

  • Utilizes an image cropper similar to Apple's own iOS 7 redesign
  • Uses the available space of the screen as much as possible regardless of the size of the image being cropped. Also ensures that large crop sizes are scaled to still fit in the screen.

How to use it

  • Follow the instructions found here.

Sample Code

self.imagePicker = [[GKImagePicker alloc] init];
self.imagePicker.cropSize = CGSizeMake(320, 496);
self.imagePicker.delegate = self;

[self.imagePicker showActionSheetOnViewController:self onPopoverFromView:btn];

License

Under MIT. See license file for details.

About

Enables a custom crop rect for UIImagePickerController

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 98.3%
  • Ruby 1.7%