ZYImagePicker 0.1.2

ZYImagePicker 0.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jun 2018

Maintained by yanyinghenmei.



  • By
  • Yanyinghenmei

ZYImagePicker

  1. Gets the picture of the specified width.
  2. 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'
end

Then, run the following command:

$ pod install

Simple 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
}];

image image image