Latest 1.0.2
Homepage https://github.com/XiFengLang/JKImageCutter
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

通用型的图片裁剪器,支持圆形和方形裁剪,对长图、小图都有做兼容优化。

Example

JKImageCutterJKImageCutter

CocoaPods

pod 'JKImageCutter','~> 1.0.1'

Usage

    JKImageCutViewController * cutVC = [[JKImageCutViewController alloc] init];
    cutVC.type = JKImageCutterTypeRounded; // JKImageCutterTypeSquare
    [cutVC cutImage:[UIImage imageNamed:@"img1.jpg"] completionHandler:^(UIImage *image) {
        self.imageView.image = image;
    }];
    [self.navigationController pushViewController:cutVC animated:YES];

不用担心Block会造成循环引用,内部已对Block进行优化


    if (self.completionHandler) {
        self.completionHandler(image);
        self.completionHandler = nil;
   }

Latest podspec

{
    "name": "JKImageCutter",
    "version": "1.0.2",
    "summary": "u901au7528u578bu7684u56feu7247u88c1u526au5668uff0cu652fu6301u5706u5f62u548cu65b9u5f62u88c1u526auff0cu5bf9u957fu56feu3001u5c0fu56feu90fdu6709u505au517cu5bb9u4f18u5316u3002",
    "homepage": "https://github.com/XiFengLang/JKImageCutter",
    "license": "MIT",
    "authors": {
        "XiFengLang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/XiFengLang/JKImageCutter.git",
        "tag": "1.0.2"
    },
    "source_files": "JKImageCutter/*.{h,m}",
    "resources": "JKImageCutter/JKImageCutter.bundle",
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This