[ASCellNode] Improve documentation, remove unused ivar

This commit is contained in:
Adlai Holler 2016-02-22 15:10:02 -08:00
parent 896f0adcaf
commit afc70b90ab
2 changed files with 4 additions and 5 deletions

View File

@ -79,16 +79,16 @@ typedef NSUInteger ASCellNodeAnimation;
- (void)setNeedsLayout; - (void)setNeedsLayout;
/** /**
* @abstract Initializes a cell with a given viewControllerBlock. * @abstract Initializes a cell with a given view controller block.
* *
* @param viewBlock The block that will be used to create the backing view. * @param viewControllerBlock The block that will be used to create the backing view controller.
* @param didLoadBlock The block that will be called after the view created by the viewBlock is loaded * @param didLoadBlock The block that will be called after the view controller's view is loaded.
* *
* @return An ASCellNode created using the root view of the view controller provided by the viewControllerBlock. * @return An ASCellNode created using the root view of the view controller provided by the viewControllerBlock.
* The view controller's root view is resized to match the calcuated size produced during layout. * The view controller's root view is resized to match the calcuated size produced during layout.
* *
*/ */
- (instancetype)initWithViewControllerBlock:(ASDisplayNodeViewControllerBlock)viewControllerBlock didLoadBlock:(ASDisplayNodeDidLoadBlock)didLoadBlock; - (instancetype)initWithViewControllerBlock:(ASDisplayNodeViewControllerBlock)viewControllerBlock didLoadBlock:(nullable ASDisplayNodeDidLoadBlock)didLoadBlock;
- (void)visibleNodeDidScroll:(UIScrollView *)scrollView withCellFrame:(CGRect)cellFrame; - (void)visibleNodeDidScroll:(UIScrollView *)scrollView withCellFrame:(CGRect)cellFrame;

View File

@ -20,7 +20,6 @@
@interface ASCellNode () @interface ASCellNode ()
{ {
UIViewController *_viewController;
ASDisplayNode *_viewControllerNode; ASDisplayNode *_viewControllerNode;
} }