mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-01 08:45:09 +08:00
Update placeholder-fade-duration.md
This commit is contained in:
@@ -16,6 +16,7 @@ For image drawing, use the node's `.calculatedSize` property.
|
||||
The <code>-placeholderImage</code> function may be called on a background thread, so it is important that this function is thread safe. Note that <code>-[UIImage imageNamed:]</code> is not thread safe when using image assets. Instead use <code>-[UIImage imageWithContentsOfFile:]</code>.
|
||||
</div>
|
||||
|
||||
|
||||
An ideal resource for creating placeholder images, including rounded rect solid colored ones or simple square corner ones is the UIImage+ASConvience category methods in ASDK.
|
||||
|
||||
See our ancient <a href="https://github.com/facebook/AsyncDisplayKit/tree/master/examples_extra/placeholders">Placeholders sample app</a> to see this concept, first invented by the Facebook Paper team, in action.
|
||||
|
||||
Reference in New Issue
Block a user