Mobile Zone is brought to you in partnership with:

Programmed Macs since Inside Mac came in 3-ring binders; programmed iPhones since the first day the SDK was downloadable. 51 apps in the App Store to date, and always looking for new and interesting contracts! Alex is a DZone MVB and is not an employee of DZone and has posted 139 posts at DZone. You can read more from them at their website. View Full User Profile

Capturing Signatures on iOS

05.31.2013
| 3994 views |
  • submit to reddit

This is a nifty little piece to bookmark just in case you ever need to do any nice smooth line capturing:

Capture a Signature on iOS

The Square Engineering Blog has a great article on Smoother Signatures for Android, but I didn’t find anything specifically about iOS. So, what is the best way to capture a users signature on an iOS device?

Although I didn’t find any articles on signature capture, there are good implementations on the App Store. My target user experience was the iPad application Paper by 53, a drawing application with beautiful and responsive brushes.

All code is available in the Github repository: SignatureDemo

… Here is an example of the final output using quadratic bézier curves, and velocity based stroke thickness creating a visually appealing and natural signature.

687474703a2f2f7777772e6e656172696e66696e6974792e636f6d2f626c6f67732f6a61736f6e5f6861727769672f6173736574732f7369676e61747572652d6c65747465722d6a2d6f70656e676c2e706e67.png

Handy if you ever need it!

h/t: ManiacDev!

Published at DZone with permission of Alex Curylo, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)