The UIBezierPath
is an object from the UIKit
, and allow you to use a set of function mixing particular curve with control point but also with a normal line.
Being an object from the UIKit
you are not able to use CGContextAddLineToPoint
, but anyway at the end you need to add the path in the context with CGContextAddPath
.
With CGContexAddLineToPoint
instead you draw directly on the context.
So my suggest is to use this last way if you have not particular reasons (like amazing curve with different control point). Otherwise, use UIBezierPath
.