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