iphone SDK:如何实现签名捕获? [英] iphone SDK: How to implement a signature capture?

查看:82
本文介绍了iphone SDK:如何实现签名捕获?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何捕获用户签名?这个想法是用户将用他们的手指在一个盒子里绘制他们的签名。部分保存过程是将此图像写入其照片文件夹。

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.

推荐答案

我认为这样做会。

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

之后,我认为保存屏幕截图的功能可以完成任务。 / p>

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);

这篇关于iphone SDK:如何实现签名捕获?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆