¡@

Home 

2014/10/15 ¤U¤È 10:14:12

iphone Programming Glossary: signatureimageview.image

iPhone signature capture

http://stackoverflow.com/questions/4132877/iphone-signature-capture

UIEvent event mouseSwiped NO UITouch touch touches anyObject Clear Signature on Double Tap if touch tapCount 2 signatureImageView.image nil return lastPoint touch locationInView signatureImageView void touchesMoved NSSet touches withEvent UIEvent event mouseSwiped.. CGPoint currentPoint touch locationInView signatureImageView UIGraphicsBeginImageContext signatureImageView.frame.size signatureImageView.image drawInRect CGRectMake 0 0 signatureImageView.frame.size.width signatureImageView.frame.size.height CGContextSetLineCap UIGraphicsGetCurrentContext.. UIGraphicsGetCurrentContext currentPoint.x currentPoint.y CGContextStrokePath UIGraphicsGetCurrentContext signatureImageView.image UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext lastPoint currentPoint void touchesEnded NSSet touches..