Skip to content

FirstStepzz/LZImageCropping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

LZImageCropping

自定义裁剪区域的图片裁剪器

帮到的话,别忘了给个星星✨啊,兄弟们。

image

使用方法:

LZImageCropping *imageBrowser = [[LZImageCropping alloc]init];
//设置代理
imageBrowser.delegate = self;
//设置自定义裁剪区域大小
imageBrowser.cropSize = CGSizeMake(self.view.frame.size.width - 60, (self.view.frame.size.width-60));
//设置图片
NSString *path = [[NSBundle mainBundle] pathForResource:@"IMG_1121"  ofType:@"jpg"];
UIImage *image = [UIImage imageWithContentsOfFile:path];
cropper.image = image;
//是否需要圆形
imageBrowser.isRound = YES;
[self presentViewController:imageBrowser animated:YES completion:nil];

About

自定义裁剪区域的图片裁剪器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published