diff --git a/TLIndexPathTools/Data Model/TLIndexPathUpdates.m b/TLIndexPathTools/Data Model/TLIndexPathUpdates.m index 4a67461..2d99529 100644 --- a/TLIndexPathTools/Data Model/TLIndexPathUpdates.m +++ b/TLIndexPathTools/Data Model/TLIndexPathUpdates.m @@ -173,6 +173,9 @@ - (void)performBatchUpdatesOnTableView:(UITableView *)tableView withRowAnimation return; } + if (animation == UITableViewRowAnimationNone) { + [UIView setAnimationsEnabled:NO]; + } [CATransaction begin]; [CATransaction setCompletionBlock: ^{ @@ -283,6 +286,9 @@ - (void)performBatchUpdatesOnTableView:(UITableView *)tableView withRowAnimation [tableView endUpdates]; [CATransaction commit]; + if (animation == UITableViewRowAnimationNone) { + [UIView setAnimationsEnabled:YES]; + } } - (void)performBatchUpdatesOnCollectionView:(UICollectionView *)collectionView