Draw Graph curves with UIBezierPath
I'm drawing a graph in my application. My problem is that I want to draw line joining vertex points as curves. Currently I'm drawing them with UIBezierPath 's function addLineToPoint: . I want to draw them as curves. I'm well aware that UIBezierPath has following two functions to support this feature. Cubic curve: addCurveToPoint:controlPoint1:controlPoint2: Quadratic curve: addQuadCurveToPoint:controlPoint: But problem is that I don't have control points. All i have is two end points. Neither I found a method/formula to determine control points. Can anyone help me here? I will appreciate if