Tailoring, graffiti, and writing. All kinds of rotations are done well, if you have bugs, welcome issue, and the following are several GIFs, support Internationale-localizable (Cutting, graffiti, text. All kinds of rotations are complete. If there is a bug, please feel free to issue. The following are several GIFs introducing the functions, supporting internationalization)




Adjust
WBGImageEditor *editor = [[WBGImageEditor alloc ] initWithImage: _imageView.image delegate: self ];
[ self presentViewController: editor animated: YES completion: nil ];Callback 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 {
}Added image resource callback
# pragma mark - WBGImageEditorDataSource
- ( NSArray <WBGMoreKeyboardItem *> *)imageItemsEditor:(WBGImageEditor *)editor {
return @[
[WBGMoreKeyboardItem createByTitle: @" p1 " imagePath: @" p1 " image: [UIImage imageNamed: @" p1 " ]],
[WBGMoreKeyboardItem createByTitle: @" p2 " imagePath: @" p2 " image: [UIImage imageNamed: @" p2 " ]]
];
} To run the example project, clone the repo, and run pod install from the Example directory first.
and this is the demo project
iOS7+
ZMJImageEditor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ZMJImageEditor" keshiim, [email protected]
ZMJImageEditor is available under the MIT license. See the LICENSE file for more info.