iphone SDK: How to implement a signature capture?

前端 未结 1 1401
粉色の甜心
粉色の甜心 2020-12-29 15:42

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 imag

相关标签:
1条回答
  • 2020-12-29 16:45

    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);
    
    0 讨论(0)
提交回复
热议问题