Increase default value for leadingScreensForBatching to 2.0, as 1.0 is not enough

for most network conditions / backend performance.
This commit is contained in:
Scott Goodson
2016-02-16 22:19:27 -08:00
parent 0c335e3aba
commit e1597f902a
4 changed files with 4 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ NS_ASSUME_NONNULL_BEGIN
/** /**
* The number of screens left to scroll before the delegate -collectionView:beginBatchFetchingWithContext: is called. * The number of screens left to scroll before the delegate -collectionView:beginBatchFetchingWithContext: is called.
* *
* Defaults to one screenful. * Defaults to two screenfuls.
*/ */
@property (nonatomic, assign) CGFloat leadingScreensForBatching; @property (nonatomic, assign) CGFloat leadingScreensForBatching;

View File

@@ -180,7 +180,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
_batchContext = [[ASBatchContext alloc] init]; _batchContext = [[ASBatchContext alloc] init];
_leadingScreensForBatching = 1.0; _leadingScreensForBatching = 2.0;
_asyncDataFetchingEnabled = NO; _asyncDataFetchingEnabled = NO;
_asyncDataSourceLocked = NO; _asyncDataSourceLocked = NO;

View File

@@ -106,7 +106,7 @@ NS_ASSUME_NONNULL_BEGIN
/** /**
* The number of screens left to scroll before the delegate -tableView:beginBatchFetchingWithContext: is called. * The number of screens left to scroll before the delegate -tableView:beginBatchFetchingWithContext: is called.
* *
* Defaults to one screenful. * Defaults to two screenfuls.
*/ */
@property (nonatomic, assign) CGFloat leadingScreensForBatching; @property (nonatomic, assign) CGFloat leadingScreensForBatching;

View File

@@ -162,7 +162,7 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
_asyncDataFetchingEnabled = NO; _asyncDataFetchingEnabled = NO;
_asyncDataSourceLocked = NO; _asyncDataSourceLocked = NO;
_leadingScreensForBatching = 1.0; _leadingScreensForBatching = 2.0;
_batchContext = [[ASBatchContext alloc] init]; _batchContext = [[ASBatchContext alloc] init];
_automaticallyAdjustsContentOffset = NO; _automaticallyAdjustsContentOffset = NO;