Instance Method

draw

Redraws the view’s contents immediately.

Declaration

- (void)draw;

Discussion

This method manually asks the view to draw new contents. This 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

Drawing Your View’s Contents

enableSetNeedsDisplay

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