/ZMJImageEditor

仿微信选取图片后编辑功能

Primary LanguageObjective-CMIT LicenseMIT

ZMJImageEditor

CI Status Version License Platform

功能介绍

剪裁、涂鸦、文字。各种旋转各种好完,如果有bug,欢迎issue

Usage

调起

WBGImageEditor *editor = [[WBGImageEditor alloc] initWithImage:_imageView.image delegate:self];
[self presentViewController:editor animated:YES completion:nil];

回调delegate

#pragma mark - WBGImageEditorDelegate
- (void)imageEditor:(WBGImageEditor *)editor didFinishEdittingWithImage:(UIImage *)image {
self.imageView.image = image;
[editor.presentingViewController dismissViewControllerAnimated:YES completion:nil];
}

- (void)imageEditorDidCancel:(WBGImageEditor *)editor {

}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

ZMJImageEditor is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ZMJImageEditor"

Author

keshiim, keshiim@163.com

License

ZMJImageEditor is available under the MIT license. See the LICENSE file for more info.