Drawing simple lines on iPhone with CoreGraphics

后端 未结 5 2640
后悔当初
后悔当初 2021-02-20 18:09

I would like to draw a straight line between where a user touches the screen, and where the touch ends. i need multiple lines, for if the user repeats the touch-drag-release act

5条回答
  •  遥遥无期
    2021-02-20 18:26

    You haven't defined the type for c:

    CGContextRef c = UIGraphicsGetCurrentContext();
    

提交回复
热议问题