forked from gekitz/GKImagePicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GKImagePicker.h
41 lines (29 loc) · 1.09 KB
/
GKImagePicker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// GKImagePicker.h
// GKImagePicker
//
// Created by Georg Kitz on 6/1/12.
// Copyright (c) 2012 Aurora Apps. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol GKImagePickerDelegate;
@interface GKImagePicker : NSObject
@property (nonatomic, weak) id<GKImagePickerDelegate> delegate;
@property (nonatomic, assign) CGSize cropSize; //default value is 320x320 (which is exactly the same as the normal imagepicker uses)
@property (nonatomic, strong, readonly) UIImagePickerController *imagePickerController;
@property (nonatomic, assign) BOOL resizeableCropArea;
@end
@protocol GKImagePickerDelegate <NSObject>
@optional
/**
* @method imagePicker:pickedImage: gets called when a user has chosen an image
* @param imagePicker, the image picker instance
* @param image, the picked and cropped image
*/
- (void)imagePicker:(GKImagePicker *)imagePicker pickedImage:(UIImage *)image;
/**
* @method imagePickerDidCancel: gets called when the user taps the cancel button
* @param imagePicker, the image picker instance
*/
- (void)imagePickerDidCancel:(GKImagePicker *)imagePicker;
@end