Add reloadData forward methods to ASCollectionNode

This commit is contained in:
Levi McCallum
2015-12-21 08:58:55 -06:00
parent 63b493a95b
commit 2bb7fc43f5
4 changed files with 41 additions and 7 deletions

View File

@@ -18,4 +18,28 @@
@property (nonatomic, readonly) ASCollectionView *view;
/**
* Reload everything from scratch, destroying the working range and all cached nodes.
*
* @param completion block to run on completion of asynchronous loading or nil. If supplied, the block is run on
* the main thread.
* @warning This method is substantially more expensive than UICollectionView's version.
*/
- (void)reloadDataWithCompletion:(void (^)())completion;
/**
* Reload everything from scratch, destroying the working range and all cached nodes.
*
* @warning This method is substantially more expensive than UICollectionView's version.
*/
- (void)reloadData;
/**
* Reload everything from scratch entirely on the main thread, destroying the working range and all cached nodes.
*
* @warning This method is substantially more expensive than UICollectionView's version and will block the main thread
* while all the cells load.
*/
- (void)reloadDataImmediately;
@end