diff --git a/docs/guide/2-custom-nodes.md b/docs/guide/2-custom-nodes.md index 65bf85a7..1b81928d 100644 --- a/docs/guide/2-custom-nodes.md +++ b/docs/guide/2-custom-nodes.md @@ -154,10 +154,11 @@ drawing API diverges substantially from UIView's. Instead of implementing `-drawParametersForAsyncLayer:`. This method will always be called on the main thread. -3. Implement either `+drawRect::::` or `+displayWithParameters::`. Note that - these are *class* methods that will not have access to your node's state - — only the draw parameters object. They can be called on any thread - and must be thread-safe. +3. Implement either `+drawRect:withParameters:isCancelled:isRasterizing:` or + `+displayWithParameters:isCancelled:`. Note that these are *class* methods + that will not have access to your node's state — only the draw + parameters object. They can be called on any thread and must be + thread-safe. For example, this node will draw a rainbow: