| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- //
- // SignatureView.h
- // SignatureView
- //
- // Created by Michal Konturek on 05/05/2014.
- // Copyright (c) 2014 Michal Konturek. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import <GLKit/GLKit.h>
- //@interface SignatureView : UIImageView
- //
- //
- //@property CGRect boundary;
- //@property (nonatomic, strong) UILongPressGestureRecognizer *recognizer;
- //
- //- (void)setLineColor:(UIColor *)color;
- //
- //- (void)clearWithColor:(UIColor *)color;
- //
- //
- //- (BOOL)isSigned;
- //
- //@end
- //typedef void(^OkClick)(void);
- #define MAX_LINEWIDTH 12
- @interface SignatureView : GLKView
- @property (nonatomic, strong) UIColor *foregroundLineColor;
- @property (nonatomic, strong) UIColor *backgroundLineColor;
- @property (nonatomic, assign) CGFloat foregroundLineWidth;
- @property (nonatomic, assign) CGFloat backgroundLineWidth;
- @property (nonatomic, assign) CGFloat MaxLineWidth;
- @property (nonatomic, assign) CGFloat MinLineWidth;
- @property (assign, nonatomic) UIColor *strokeColor;
- @property (assign, nonatomic) BOOL isSigned;
- //@property (strong, nonatomic) UIImage *signatureImage;
- - (UIImage *)signatureImage;
- - (NSData *)signatureData;
- - (void)setLineWidth:(CGFloat)width;
- //@property(nonatomic,copy)OkClick okClick;
- // 清除
- - (void)clear;
- @end
|