Inherits from NSObject
Declared in TLIndexPathUpdates.h

Overview

Takes two versions of a data model and computes the changes, i.e. the inserts, moves, deletes and modifications. A variety of performBatchUpdatesOn* methods are provided for performing batch updates on the table or collection view.

Properties

deletedItems

@property (strong, nonatomic, readonly) NSArray *deletedItems

deletedSectionNames

@property (strong, nonatomic, readonly) NSArray *deletedSectionNames

insertedItems

@property (strong, nonatomic, readonly) NSArray *insertedItems

insertedSectionNames

@property (strong, nonatomic, readonly) NSArray *insertedSectionNames

modifiedItems

@property (strong, nonatomic, readonly) NSArray *modifiedItems

movedItems

@property (strong, nonatomic, readonly) NSArray *movedItems

movedSectionNames

@property (strong, nonatomic, readonly) NSArray *movedSectionNames

oldDataModel

@property (strong, nonatomic, readonly) TLIndexPathDataModel *oldDataModel

updatedDataModel

@property (strong, nonatomic, readonly) TLIndexPathDataModel *updatedDataModel

Instance Methods

initWithOldDataModel:updatedDataModel:

- (id)initWithOldDataModel:(TLIndexPathDataModel *)oldDataModel updatedDataModel:(TLIndexPathDataModel *)updatedDataModel

performBatchUpdatesOnCollectionView:

- (void)performBatchUpdatesOnCollectionView:(UICollectionView *)collectionView

performBatchUpdatesOnCollectionView:completion:

- (void)performBatchUpdatesOnCollectionView:(UICollectionView *)collectionView completion:(void ( ^ ) ( BOOL finished ))completion

performBatchUpdatesOnTableView:withRowAnimation:

- (void)performBatchUpdatesOnTableView:(UITableView *)tableView withRowAnimation:(UITableViewRowAnimation)animation