From 0acfea234f09ca092bb408226524a731c0f15b52 Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Mon, 3 Aug 2015 02:30:08 +0300 Subject: [PATCH] Update comments of setNeedsLayout and setNeedsDisplay of ASDisplayNode. --- AsyncDisplayKit/ASDisplayNode.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AsyncDisplayKit/ASDisplayNode.h b/AsyncDisplayKit/ASDisplayNode.h index fadd242a59..b4236cf32c 100644 --- a/AsyncDisplayKit/ASDisplayNode.h +++ b/AsyncDisplayKit/ASDisplayNode.h @@ -505,10 +505,13 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)(); */ @interface ASDisplayNode (UIViewBridge) -- (void)setNeedsDisplay; // Marks the view as needing display. Convenience for use whether view is created or not, or from a background thread. +/** + * Marks the view as needing display. Convenience for use whether the view / layer is loaded or not. Safe to call from a background thread. + */ +- (void)setNeedsDisplay; /** - * Marks the view as needing layout. Convenience for use whether view is created or not, or from a background thread. + * Marks the node as needing layout. Convenience for use whether the view / layer is loaded or not. Safe to call from a background thread. * * If this node was measured, calling this method triggers an internal relayout: the calculated layout is invalidated, * and the supernode is notified or (if this node is the root one) a full measurement pass is executed using the old constrained size.