Majorly Improve automaticallyAdjustsContentOffset (#3033)

* Majorly improve automaticallyAdjustsContentOffset

* Remove nodes from ASDataControllerDelegate & ASRangeControllerDelegate

* Do it after -endUpdates
This commit is contained in:
Adlai Holler
2017-02-15 11:57:39 -08:00
committed by GitHub
parent 8e18f1562c
commit b616248c20
8 changed files with 89 additions and 104 deletions

View File

@@ -45,9 +45,11 @@ NS_ASSUME_NONNULL_BEGIN
- (nullable ASCellNode *)nodeForRowAtIndexPath:(NSIndexPath *)indexPath AS_WARN_UNUSED_RESULT;
/**
* YES to automatically adjust the contentOffset when cells are inserted or deleted "before"
* visible cells, maintaining the users' visible scroll position. Currently this feature tracks insertions, moves and deletions of
* cells, but section edits are ignored.
* YES to automatically adjust the contentOffset when cells are inserted or deleted above
* visible cells, maintaining the users' visible scroll position.
*
* @note This is only applied to non-animated updates. For animated updates, there is no way to
* synchronize or "cancel out" the appearance of a scroll due to UITableView API limitations.
*
* default is NO.
*/