I have the following code in my UIView drawRect:
- (void)drawRect:(CGRect)rect {
UIBezierPath *trackPath = [UIBezierPath bezierPath];
[trackPath addQuadCurveToPoint:CGPointMake(10, 30) controlPoint:CGPointMake(0, 0)];
[trackPath stroke];
}
however I am not seeing any path drawn. What am I doing wrong?
All you did was create the path. Now try:
Update
In your new and improved question, you need to set the initial point before adding the quad curve: