views:

531

answers:

1

how do i draw line when moving finger across screen in iphone using core graphics.

+1  A: 

You need to handle the touch events:

on touches began:

record the point & save it in an instance variable

on touches moved:

record the new ending point & save it in an instance variable

With these 2 points you can create a path & use Coregraphics to draw the path

Ben Scheirman
i am drawing but it's slow on device and fast on simulator
Rahul Vyas