Instance Method

draw

Redraws the view’s contents immediately.

Declaration

- (void)draw;

Discussion

This method manually tells the view to redraw its contents. Calling this method causes the view to call either the drawInMTKView: method of the view’s delegate, or the drawRect: method of the MTKView subclass. Never call this method inside either drawing function.

See Also

Configuring Drawing Behavior

preferredFramesPerSecond

The rate at which the view redraws its contents.

paused

A Boolean value that indicates whether the draw loop is paused.

enableSetNeedsDisplay

A Boolean value that indicates whether the view responds to setNeedsDisplay.

presentsWithTransaction

A Boolean value that determines whether the view presents its content using a Core Animation transaction.