mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-24 03:45:58 +08:00
Use full method signatures in docs
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user