Use _ASDisplayLayer for both ASTableView and ASCollectionView. zeroContentInsets to fix UIKit.

This commit is contained in:
Scott Goodson
2015-12-29 22:24:44 -08:00
parent b1b9ad23d6
commit 051f1f6cdd
5 changed files with 62 additions and 25 deletions

View File

@@ -288,6 +288,16 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)clearFetchedData;
/**
* Forces the .contentInset to be UIEdgeInsetsZero.
*
* @discussion By default, UIKit sets the top inset to the navigation bar height, even for horizontally
* scrolling views. This can only be disabled by setting a property on the containing UIViewController,
* automaticallyAdjustsScrollViewInsets, which may not be accessible. ASPagerNode uses this to ensure
* its flow layout behaves predictably and does not log undefined layout warnings.
*/
@property (nonatomic) BOOL zeroContentInsets;
@end