Latest 0.0.1
Homepage https://github.com/Vesincc/HQImageEditViewController
License MIT
Platforms ios 9.0, requires ARC
Dependencies Masonry
Authors

头像裁剪、图片裁剪

CocoaPods

pod 'HQImageEditViewController'

ScreenShot

正方形裁剪框
image

矩形裁剪框
image

import

#import <HQImageEditViewController.h>

Use

HQImageEditViewController *vc = [[HQImageEditViewController alloc] init];
vc.originImage = [UIImage imageNamed:@"25"];
vc.delegate = self;
[self.navigationController pushViewController:vc animated:YES];

Delegate


@protocol HQImageEditViewControllerDelegate <NSObject>

/**
 选取完成

 @param vc vc
 @param image 截取View获得图片
 @param originSizeImage 截取框对应原图片
 */
- (void)editController:(HQImageEditViewController *)vc finishiEditShotImage:(UIImage *)image originSizeImage:(UIImage *)originSizeImage;

/**
 取消

 @param vc vc
 */
- (void)editControllerDidClickCancel:(HQImageEditViewController *)vc;

@end

裁剪框

HQImageEditViewController *vc = [[HQImageEditViewController alloc] init];
vc.editViewSize = CGSizeMake(300, 200);

裁剪蒙层

HQImageEditViewController *vc = [[HQImageEditViewController alloc] init];
vc.maskViewAnimation = YES;

Latest podspec

{
    "name": "HQImageEditViewController",
    "version": "0.0.1",
    "summary": "iOS u5934u50cfu88c1u526au3001u56feu7247u88c1u526a",
    "description": "iOS u5934u50cfu88c1u526au3001u56feu7247u88c1u526a u5faeu4fe1u5934u50cfu88c1u526a",
    "homepage": "https://github.com/Vesincc/HQImageEditViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "vesincc": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/Vesincc/HQImageEditViewController.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "HQImageEditViewControllerDemo/HQImageEditViewController/*.{h,m}",
        "HQImageEditViewControllerDemo/HQImageEditViewController/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "resources": "HQImageEditViewControllerDemo/HQImageEditViewController/Source/*.png",
    "requires_arc": true,
    "dependencies": {
        "Masonry": []
    }
}

Pin It on Pinterest

Share This