added sample app that initializes ASCollectionView cells using view controllers, wip though

This commit is contained in:
Luke Parham
2015-12-08 21:57:14 -06:00
parent f5d06c5989
commit 5e34f10b81
55 changed files with 1589 additions and 3 deletions

View File

@@ -22,6 +22,11 @@
*/
typedef UIView *(^ASDisplayNodeViewBlock)();
/**
* UIView creation block. Used to create the backing view of a new display node.
*/
typedef UIViewController *(^ASDisplayNodeViewControllerBlock)();
/**
* CALayer creation block. Used to create the backing layer of a new display node.
*/
@@ -94,6 +99,9 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
- (id)init;
- (id)initWithViewControllerBlock:(ASDisplayNodeViewControllerBlock)viewControllerBlock;
- (id)initWithViewControllerBlock:(ASDisplayNodeViewControllerBlock)viewControllerBlock didLoadBlock:(ASDisplayNodeDidLoadBlock)didLoadBlock;
/**
* @abstract Alternative initializer with a block to create the backing view.
*