Instance Property

delegate

The view’s delegate.

Declaration

@property(nonatomic, weak) id<MTKViewDelegate> delegate;

Discussion

A delegate is optional. If a delegate is provided, it is called instead of the drawRect: method whenever the view’s contents need to be drawn. You should either provide a delegate or subclass the view to override the drawRect: method, but not both.