• Stars
    star
    592
  • Rank 75,570 (Top 2 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 12 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Enables a custom crop rect for UIImagePickerController

GKImagePicker

Ever wanted a custom crop area for the UIImagePickerController? Now you can have it with GKImagePicker. Just set your custom crop area and that's it. Just 4 lines of code. If you don't set it, it uses the same crop area as the default UIImagePickerController.

How to use it

  • just drag and drop the files in under "GKClasses" & "GKImages" into your project.
  • look at the sample code below.
  • this project contains a sample project as well, just have a look at the implementation of ViewController.m
  • have fun and follow @gekitz.

Sample Code

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

 [self presentModalViewController:self.imagePicker.imagePickerController animated:YES];

This code results into the following controller + crop area:

Sample Crop Image

It's even possible to let the user adjust the crop area (thanks to @pathonhauser for this pull request) by setting one additional property:

self.imagePicker.resizeableCropArea = YES;

This code results into the following controller + adjustable crop area: Sample Crop Image Adjustable

License

Under MIT. See license file for details.

More Repositories

1

UIDevice-with-UniqueIdentifier-for-iOS-5

Brings back the unique identifier support under iOS 5, it uses the device's mac address in combination with the bundle identifier to generate a new hashed unique identifier.
Objective-C
1,236
star
2

GKSlidingText

Music.app / iTunes / lock screen / iRadio like sliding text
Objective-C
60
star
3

GKContactImage

Creates an avatar image like the iOS7 Contacts.app for a given name
Objective-C
56
star
4

GKPopoverController

A popover controller for iPhone
Objective-C
29
star
5

GKPopLoadingView

A custom loading view which is blocking the display, animations are build with Facebook's POP
Objective-C
14
star
6

GKPostKit

Easy to use framework to post status messages to Twitter and Facebook.
9
star
7

GKPeoplePickerNavigationController

A more flexibel and customisable implementation of ABPeoplePickerNavigationController
Objective-C
9
star
8

AAReorderControl

Allows drag&drop of one UIView between different UITableViews.
Objective-C
7
star
9

jalapeno

Observer a directory and copy changed files to another directory with node.js
JavaScript
5
star
10

GKBlocks

Addition for UIActionSheet and UIAlertView to support a block instead of a delegate to check which button was tapped
Objective-C
5
star
11

TrackTapOnAnimatedView

This project shows how to keep track of the touches on an animated UIView.
3
star
12

GKTMDBClient

2
star
13

GKKeySupportTableView

This let's you navigate in a UITableView with the arrow up/down key and selects a cell by hitting Enter
Objective-C
2
star
14

SMImageGallery

1
star
15

LordCrashALot

Make fun out of Xcode crashes, find out who of us is the lord of the crashes
Objective-C
1
star
16

AASegmentControl

Custom SegmentControl for iOS. Based on background images for left, middle and right segment. Customizable font, text color and highlight text color.
1
star
17

gekitz.github.com

Ruby
1
star