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


#1

Hey,
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,
n


#2

Never mind, found my error…

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

:blush: