Contents

PKEraserTool

A tool for erasing previously drawn content in a canvas view.

Declaration

struct PKEraserTool

Overview

A PKEraserTool object supports the deletion of content from a PKCanvasView object. The eraser tool’s type determines whether the canvas removes entire items or just the portion of an item that it touches.

Create an eraser tool programmatically or display a PKToolPicker object and let the user select the eraser. Assign the resulting object to the tool property of your PKCanvasView object. The canvas uses any subsequent touch sequences to erase content on the canvas.

Topics

Creating an eraser tool

Getting the eraser type

Specifying the width

Using reference types

See Also

Tools