Currently I have implemented a SignatureViewController
using a PanGestureRecognizer
, a BezierPath and the methods moveToPoint:
and addLineToPoint:
, as it can be found a thousand times on the web. But the curves are not drawn smooth, which is a problem for signatures.
Can anybody give me an ObjC example showing how to calculate the control points for the method
- (void)addCurveToPoint:(CGPoint)endPoint controlPoint1:(CGPoint)controlPoint1 controlPoint2:(CGPoint)controlPoint2;