Latest 0.0.5
Homepage https://github.com/Yanyinghenmei/ZYImagePicker
License MIT
Platforms ios 8.0, requires ARC
Authors
  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

Latest podspec

{
    "name": "ZYImagePicker",
    "version": "0.0.5",
    "summary": "A picture picker that specifies size and clipping",
    "description": "You can specifies image width or clipping the image with any size.",
    "homepage": "https://github.com/Yanyinghenmei/ZYImagePicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Yanyinghenmei": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Yanyinghenmei/ZYImagePicker.git",
        "tag": "0.0.5"
    },
    "source_files": [
        "ZYImagePicker",
        "ZYImagePicker/**/*.{h,m}"
    ],
    "resources": "ZYImagePicker/ZYBundle.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This