Skip to content

Latest commit

ย 

History

History
108 lines (61 loc) ยท 2.49 KB

File metadata and controls

108 lines (61 loc) ยท 2.49 KB

LCPaintView

Travis CocoaPods CocoaPods CocoaPods LeoDev

๐Ÿ–Œ Paint view for iOS.

LCPaintView

In me the tiger sniffs the rose.

ๅฟƒๆœ‰็Œ›่™Ž๏ผŒ็ป†ๅ—…่”ท่–‡ใ€‚

Welcome to visit my blog๏ผšhttps://LeoDev.me

Introduction

๐Ÿ–Œ Paint view for iOS.

Installation

CocoaPods

LCPaintView is available on CocoaPods. Just add the following to your project Podfile:

pod "LCPaintView"  # Podfile

Non-CocoaPods

Just drag the LCPaintView folder into your project.

Usage

  • Use by including the following import:

    #import "LCPaintView.h"
  • Demo code:

    LCPaintView *paintView = ({
        LCPaintView *paintView = [[LCPaintView alloc] init];
        paintView.frame = CGRectMake(0, 0, screenSize.width, screenSize.height);
        [self.view insertSubview:paintView atIndex:0];
        paintView;
    });
  • Custom:

    // Properties
    paintView.lineWidth = 10.0f;
    paintView.lineColor = [UIColor redColor];
    
    // Methods
    [paintView clear];
    [paintView undo];

ChangeLog

V 1.0.0

  • Initial Commit.

Support

  • If you have any question, just commit a issue!

  • Mail: echo bGVvZGF4aWFAZ21haWwuY29tCg== | base64 -D or echo ZGV2dGlwQDE2My5jb20K | base64 -D

  • Blog: http://LeoDev.me

  • Donations:

    • PayPal:

      Donate

    • Alipay or Wechat Pay:

      Donate with Alipay or Wechat Pay

    Please note: donation does not imply any type of service contract.

License

MIT License