Contents

PKDrawingReference

A data structure that contains the drawing information captured by a canvas view.

Declaration

class PKDrawingReference

Overview

A PKDrawingReference object stores the user-drawn content from a PKCanvasView object. You use drawing objects to store the data associated with your user’s drawings. You can save this data with the rest of your app’s content, and you can use that saved data to create a new drawing object later. You can also generate an image based on the drawn content.

Topics

Creating a drawing object

Getting the canvas bounds

Generating an image

Getting the drawing data

Modifying the drawing

Supporting backward compatibility

Initializers