An open API service indexing awesome lists of open source software.

https://github.com/xifenglang/jkimagecutter

<iOS>图片裁剪器,支持圆形、方形裁剪
https://github.com/xifenglang/jkimagecutter

imagecropper imagecutter ios

Last synced: about 1 year ago
JSON representation

<iOS>图片裁剪器,支持圆形、方形裁剪

Awesome Lists containing this project

README

          

# JKImageCutter
通用型的图片裁剪器,支持圆形和方形裁剪,对长图、小图都有做兼容优化。

## Example ##

## CocoaPods

```
pod 'JKImageCutter','~> 1.0.3'
```

## Usage ##

```Object-C
JKImageCutViewController * cutVC = [[JKImageCutViewController alloc] init];
cutVC.type = JKImageCutterTypeRounded; // JKImageCutterTypeSquare
[cutVC cutImage:[UIImage imageNamed:@"img1.jpg"] completionHandler:^(UIImage *image) {
self.imageView.image = image;
}];
[self.navigationController pushViewController:cutVC animated:YES];

```

**不用担心Block会造成循环引用,内部已对Block进行优化**

```Object-C

if (self.completionHandler) {
self.completionHandler(image);
self.completionHandler = nil;
}
```