mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-07 00:12:48 +08:00
Node placeholder API
ASDisplayNodes now have an overidable method -placeholderImage that lets you provide a custom UIImage to display while a node is displaying asyncronously. The default implementation of this method returns nil and thus does nothing. A provided example project also demonstrates using the placeholder API.
This commit is contained in:
@@ -53,6 +53,12 @@ void ASDisplayNodePerformBlockOnMainThread(void (^block)());
|
||||
UIView *_view;
|
||||
CALayer *_layer;
|
||||
|
||||
UIImage *_placeholderImage;
|
||||
CALayer *_placeholderLayer;
|
||||
|
||||
// keeps track of nodes/subnodes that have not finished display, used with placeholders
|
||||
NSMutableSet *_pendingDisplayNodes;
|
||||
|
||||
_ASPendingState *_pendingViewState;
|
||||
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user