CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by Michal Konturek.
UI component for capturing signature.
Source code of this project is available under the standard MIT license. Please see the license file.
To see a quick demo, simply type pod try SignatureView.
Initialize SignatureView from nib or programmatically:
CGRect frame = CGRectMake(0, 40, 320, 300);
id view = [[SignatureView alloc] initWithFrame:frame];
[self.view addSubview:view];
self.signatureView = view;You can customzie following attributes:
Line Color
self.signatureView.foregroundLineColor = [UIColor redColor];
self.signatureView.backgroundLineColor = [UIColor blueColor];Line Width
self.signatureView.foregroundLineWidth = 3.0;
self.signatureView.backgroundLineWidth = 3.0;A signature image can be retrieved by UIImage object:
UIImage *signature = [self.signatureView signatureImage];or by PNG representation:
NSData *signatureData = [self.signatureView signatureData];SignatureView comes with a UILongPressGestureRecognizer which is responsible for clearning its view;
git checkout -b new-feature).git commit -am 'Added new-feature').git push origin new-feature).