Latest 1.0.9
Homepage https://github.com/Jonhson123/WPClipView
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

Any help, Pls contact scocsdn@gmail.com

Preview

Usage

#import "ViewController.h"
#import <WPClipView/WPClipView.h>

@interface ViewController ()

@property (weak, nonatomic) IBOutlet WPClipView *clipView;

@end

@implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];

self.clipView.showMidLines = YES;
self.clipView.initMaskScale = .8f;
self.clipView.pointLineColor = [UIColor redColor];
self.clipView.pointSelectedColor = [UIColor yellowColor];
self.clipView.image = [UIImage imageNamed:@"test"];

//add area
NSMutableArray *areas = [[NSMutableArray alloc] init];
NSDictionary *area1 = [NSDictionary dictionaryWithObjectsAndKeys:@80, @"x",@80, @"y", @100, @"width", @100, @"height", nil];
[areas addObject:area1];
self.clipView.areas = areas;

//add point
NSMutableArray *points = [[NSMutableArray alloc] init];
NSDictionary *point1 = [NSDictionary dictionaryWithObjectsAndKeys:@250, @"x",@250, @"y", nil];
[points addObject:point1];
self.clipView.points = points;
}

@end

Latest podspec

{
    "name": "WPClipView",
    "version": "1.0.9",
    "summary": "WPClipView",
    "description": "a clip view for the image",
    "homepage": "https://github.com/Jonhson123/WPClipView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Johnson": "scocsdn@gmail.com"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Jonhson123/WPClipView.git",
        "tag": "1.0.9"
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "vendored_frameworks": "WPClipView.framework",
    "requires_arc": true
}

Pin It on Pinterest

Share This