ZYImagePicker
- Gets the picture of the specified width.
- Cut out rectangles or circles / ellipses.
How to use
Download ZYImagePicker and try out the included you iPhone project or use CocoaPods.
Podfile
To integrate ZYImagePicker into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
target 'TargetName' do
pod 'ZYImagePicker', '~> 0.0.5'
endThen, run the following command:
$ pod installSimple code
_imagePicker must be a strong reference
@property (nonatomic, strong)ZYImagePicker *imagePicker;_imagePicker = [ZYImagePicker new];Gets the picture of the specified width.
[_imagePicker libraryPhotoWithController:self compressWidth:320 FormDataBlock:^(UIImage *image, ZYFormData *formData) {
// you code
}];Cut out rectangles or circles / ellipses.
[_imagePicker libraryPhotoWithController:self cropSize:CGSizeMake(200, 200) imageScale:1 isCircular:false FormDataBlock:^(UIImage *image, ZYFormData *formData) {
// you code
}];

