Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iphone SDK: How to implement a signature capture?

Tags:

iphone

How can I capture a users signature? The idea is that the user will use their fingers to draw their signature in a box. Part of the saving process will be to write this image to their Photos folder.

like image 412
jp chance Avatar asked Oct 27 '09 12:10

jp chance


People also ask

How do I add a signature to SignRequest?

SignRequest highly recommends the sender to create input fields as it makes the signing process much easier, especially for first-time users. Without input fields defined: Click in the document. Click on one of the icons to add text, a date, checkbox or signature.


1 Answers

I think this will do it.

http://www.ipodtouchfans.com/forums/showthread.php?t=132024

After that, I think the ability to save a screen capture will do the job.

UIGraphicsBeginImageContext(self.view.bounds.size); //self.view.window.frame.size
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
like image 99
jp chance Avatar answered Sep 29 '22 23:09

jp chance