Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 iOS 13/iPadOS 中使用 PencilKit 时,如何从屏幕上删除所有内容,或删除那些选定的内容(通过套索)?
我在 PKDrawing 或 PKCanvasView 中找不到执行这些操作的任何函数?
PKCanvasView您只需将drawing属性设置为新的 empty即可清除 上的绘图PKDrawing。
PKCanvasView
drawing
PKDrawing
canvasView.drawing = PKDrawing()