Merge pull request #1096 from facebook/pr/1059

[tvOS] Initial changes to support building AsyncDisplayKit for tvOS.
This commit is contained in:
appleguy
2016-01-23 12:28:43 -08:00
15 changed files with 167 additions and 23 deletions

View File

@@ -48,12 +48,13 @@
[super didLoad];
ASCollectionView *cv = self.view;
#if TARGET_OS_IOS
cv.pagingEnabled = YES;
cv.scrollsToTop = NO;
#endif
cv.allowsSelection = NO;
cv.showsVerticalScrollIndicator = NO;
cv.showsHorizontalScrollIndicator = NO;
cv.scrollsToTop = NO;
// Zeroing contentInset is important, as UIKit will set the top inset for the navigation bar even though
// our view is only horizontally scrollable. This causes UICollectionViewFlowLayout to log a warning.