Reputation: 7413
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;
Upvotes: 1
Views: 2283
Reputation: 2019
UIBezierPath
having a property miterLimit
by using this we can smooth curve.
Go through the flollowing link this is similar to your requirement. UIBezierPath not drawing a smooth curve
Hope it help's you.
Upvotes: 2