iphone SDK:如何实现签名捕获?

jp *_*nce 7 iphone

如何捕获用户签名?想法是用户将用他们的手指在盒子中绘制他们的签名.部分保存过程是将此图像写入其Photos文件夹.

jp *_*nce 5

我想这会做到的.

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

在那之后,我认为保存屏幕截图的能力将完成这项工作.

UIGraphicsBeginImageContext(self.view.bounds.size); //self.view.window.frame.size
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
Run Code Online (Sandbox Code Playgroud)