LEGOImageCropper
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
LEGOImageCropper is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LEGOImageCropper'
LEGOImageCropper is the picture cropper, support to resizeWHScale, set size, rotate angle, fine adjust angle, crop product image. 图片裁剪,支持大小缩放,设置大小,旋转角度,微调角度,裁剪产品图片。
Features
- Resize WH Scale. 缩放尺寸
- Allow two fingers rotate angle freely. 双指调整缩放旋转
- rotate angle by control. 角度外部控制
- Angle fine tuning. 角度微调
- Double click to reset picture. 双击重置
Demonstration
Requirements
- iOS 8.0+
- Xcode 10.0+
Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate LEGOImageCropper into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'LEGOImageCropper'
Manually
If you prefer not to use any of the dependency mentioned above, you can integrate LEGOImageCropper into your project manually. Just drag & drop the Sources
folder to your project.
Usage
/** crop picture 裁剪方法实例 */
[self.imageCropperView cropImageWithComplete:^(UIImage *resizeImage) {
NSLog(@"resizeImage=%@",resizeImage);
}];
For details, see example for LEGOImageCropper.
Author
[email protected], [email protected]
License
LEGOImageCropper is available under the MIT license. See the LICENSE file for more info.