Created ASCollectionNode with new example project.

Eases support for nesting horizontally scrolling elements within a vertical scroller.

Further changes will improve the API, and optimize handling of the nested working ranges.
This commit is contained in:
Scott Goodson
2015-09-07 12:54:42 -07:00
parent de795d577a
commit 08e31e1c37
24 changed files with 911 additions and 0 deletions

View File

@@ -137,6 +137,11 @@ static BOOL _isInterceptedSelector(SEL sel)
#pragma mark -
#pragma mark Lifecycle.
- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout
{
return [self initWithFrame:CGRectZero collectionViewLayout:layout asyncDataFetching:NO];
}
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout
{
return [self initWithFrame:frame collectionViewLayout:layout asyncDataFetching:NO];
@@ -175,6 +180,8 @@ static BOOL _isInterceptedSelector(SEL sel)
_maxSizeForNodesConstrainedSize = self.bounds.size;
self.backgroundColor = [UIColor whiteColor];
[self registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"_ASCollectionViewCell"];
return self;