jcmontiel / signatureview Goto Github PK
View Code? Open in Web Editor NEWA simple signature view that presents a signature box and returns a finger drawn signature (PNG format) as NSData
A simple signature view that presents a signature box and returns a finger drawn signature (PNG format) as NSData
Hi,
I've implemented your signatureViewController. It shows the SignatureView but when I write something on it using finger nothing is shown. Why?
Could you attach a complete project?
Thanks.
Works fine in simulator. Crashed on device
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_c.dylib 0x3a31fe00 memmove$VARIANT$CortexA8 + 768
1 ImageIO 0x32fd74f4 writeOnePng + 2340
2 ImageIO 0x32fd7a36 _CGImagePluginWritePNG + 82
3 ImageIO 0x32e74646 CGImageDestinationFinalize + 126
4 UIKit 0x34220da8 UIImagePNGRepresentation + 512
5 MyApp 0x00042424 -SignatureViewController signatureSignTapped:
6 MyApp 0x0003feb8 -HoursSignViewController saveButtonPressed:
7 UIKit 0x341300c0 -[UIApplication sendAction:to:from:forEvent:] + 68
8 UIKit 0x34130148 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 116
9 UIKit 0x341300c0 -[UIApplication sendAction:to:from:forEvent:] + 68
10 UIKit 0x34130072 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
11 UIKit 0x34130050 -[UIControl sendAction:to:forEvent:] + 40
12 UIKit 0x3412f906 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498
13 UIKit 0x3412fdfc -[UIControl touchesEnded:withEvent:] + 484
14 UIKit 0x340585ec -[UIWindow _sendTouchesForEvent:] + 520
15 UIKit 0x340457fc -[UIApplication sendEvent:] + 376
16 UIKit 0x34045116 _UIApplicationHandleEvent + 6150
17 GraphicsServices 0x35d465a0 _PurpleEventCallback + 588
18 GraphicsServices 0x35d461ce PurpleEventCallback + 30
19 CoreFoundation 0x32212170 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 32
20 CoreFoundation 0x32212112 __CFRunLoopDoSource1 + 134
21 CoreFoundation 0x32210f94 __CFRunLoopRun + 1380
22 CoreFoundation 0x32183eb8 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x32183d44 CFRunLoopRunInMode + 100
24 GraphicsServices 0x35d452e6 GSEventRunModal + 70
25 UIKit 0x340992fc UIApplicationMain + 1116
26 MyApp 0x00028d98 main (main.m:34)
27 libdyld.dylib 0x3a30eb1c start + 0
When placing 2 SignatureView's in one viewcontroller the same signature is being returned. I adapted the example to contain 2 signature views (https://github.com/Koenkk/SignatureViewExample iPad only). In this example the signature of the lower SignatureView is always returned (even when asking for the signature of the upper SignatureView).
Hi JC,
Good day..! I have downloaded your sample source code.. Just want to ask, how to you increase the size of the signature view..?
Hope to hear from you..
Thanks,
Link
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.