使用核心图形在iPhone中的屏幕上移动手指时如何画线。
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.