Latest 1.1
Homepage https://github.com/LazyDuan/LDImagePicker
License MIT
Platforms ios 8.0, requires ARC
Authors

LDImagePicker

本项目是使用系统的UIImagePickerController和自定制裁剪框VPImageCropperViewController来实现从手机相册取出图片或拍摄图片然后自定义尺寸剪切获取的图片。

使用方法:

LDImagePicker *imagePicker = [LDImagePicker sharedInstance];
imagePicker.delegate = self;
//设置宽高比,宽度固定位屏幕宽度
[imagePicker showImagePickerWithType:buttonIndex InViewController:self Scale:0.75];

- (void)imagePickerDidCancel:(LDImagePicker *)imagePicker{

}
- (void)imagePicker:(LDImagePicker *)imagePicker    didFinished:(UIImage *)editedImage{
self.imgeView.image = editedImage;
}

支持使用pod管理

pod 'LDImagePicker'

如果喜欢,请帮忙点颗星星✨

Latest podspec

{
    "name": "LDImagePicker",
    "version": "1.1",
    "summary": "u81eau5b9au4e49u9009u62e9u88c1u526au56feu7247u9009u62e9u5668",
    "description": "A Custom Crop ImagePicker",
    "homepage": "https://github.com/LazyDuan/LDImagePicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "LazyDuan": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/LazyDuan/LDImagePicker.git",
        "tag": "1.1"
    },
    "source_files": "LDImagePicker/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This