JQImagePicker 1.0.1

JQImagePicker 1.0.1

Maintained by XiaoHange.



  • By
  • 韩俊强

JQImagePicker

前言

iOS照片自定义裁剪, 自定义宽高比裁剪, 经典16:9等裁剪方式,代码调用简单精炼.

1.自定义裁剪

自定义裁剪

2.系统自带裁剪

系统自带裁剪

更新记录

  • 0.0.1 发布第一版本 0.0.1

Installation

  • 1.Drag all source files under floder JQImagePicker to your project.

  • 2.pod: JQImagePicker

Usage

#import "JQImagePicker.h"
1.系统自带裁剪
// 拍照
 JQImagePicker *imagePicker = [JQImagePicker sharedInstance];
            imagePicker.delegate = self;
            [imagePicker showOriginalImagePickerWithType:ImagePickerCamera InViewController:self];
// 相册
JQImagePicker *imagePicker = [JQImagePicker sharedInstance];
            imagePicker.delegate = self;
            [imagePicker showOriginalImagePickerWithType:ImagePickerPhoto InViewController:self];
2.自定义裁剪
// 拍照
 JQImagePicker *imagePicker = [JQImagePicker sharedInstance];
            imagePicker.delegate = self;
            [imagePicker showImagePickerWithType:ImagePickerCamera InViewController:self Scale:scale];
// 相册
JQImagePicker *imagePicker = [JQImagePicker sharedInstance];
            imagePicker.delegate = self;
            [imagePicker showImagePickerWithType:ImagePickerPhoto InViewController:self Scale:scale];
3.JQImagePickerDelegate
- (void)imagePickerDidCancel:(JQImagePicker *)imagePicker
{
    NSLog(@"取消");
}

- (void)imagePicker:(JQImagePicker *)imagePicker didFinished:(UIImage *)editedImage
{
    NSLog(@"裁剪后:%@",editedImage);
}

Star

CSDN博客

手机加iOS开发者交流群:①群:446310206 ②群:426087546 喜欢就❤️❤️❤️star一下吧!

Love is every every every star! Your support is my renewed motivation!

License

This code is distributed under the terms and conditions of the MIT license.