Can't get red (in process) lines to draw


I’m working through this chapter on iOS 5.1 and XCode 4.3.

When I draw I’m not getting the red “in process” lines drawn. In fact no line gets drawn. The (black) line only shows up when I lift my finger from the screen.

Shouldn’t I see a red line being drawn while my finger is dragging across the screen?

Thanks in advance,


Never mind, found my error…

I was calling CGContextMoveToPoint() twice instead of once, followed by CGContextAddLineToPoint() in my drawRect method.