- 导入头文件
#import "CLPhotoCrop.h"
- 跳转
CLPhotoShopViewController *vc = [[CLPhotoShopViewController alloc] init];
vc.orgImage = [UIImage clp_imageNamed:@"bg"];
vc.delegate = self;
[self presentViewController:vc animated:true completion:nil];
- 代理
///CLPhotoShopViewControllerDelegate
- (void)CLPhotoShopViewControllerFinishImage:(UIImage *)image {
self.imageView.image = image;
}
CLPhotoCrop is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CLPhotoCrop'
leiyuyu, leiyuyu1993@163.com
CLPhotoCrop is available under the MIT license. See the LICENSE file for more info.