Remove bachUpdate and begin/endUpdate

This commit is contained in:
Li Tan
2014-12-18 20:28:57 -08:00
parent 7e79950112
commit 9367ccc19c
4 changed files with 64 additions and 42 deletions

View File

@@ -361,9 +361,7 @@ static BOOL _isInterceptedSelector(SEL sel)
ASDisplayNodeAssertMainThread();
[UIView performWithoutAnimation:^{
[super beginUpdates];
[super insertRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationNone];
[super endUpdates];
}];
}
@@ -371,9 +369,7 @@ static BOOL _isInterceptedSelector(SEL sel)
ASDisplayNodeAssertMainThread();
[UIView performWithoutAnimation:^{
[super beginUpdates];
[super deleteRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationNone];
[super endUpdates];
}];
}
@@ -381,9 +377,7 @@ static BOOL _isInterceptedSelector(SEL sel)
ASDisplayNodeAssertMainThread();
[UIView performWithoutAnimation:^{
[super beginUpdates];
[super insertSections:indexSet withRowAnimation:UITableViewRowAnimationNone];
[super endUpdates];
}];
}
@@ -391,9 +385,7 @@ static BOOL _isInterceptedSelector(SEL sel)
ASDisplayNodeAssertMainThread();
[UIView performWithoutAnimation:^{
[super beginUpdates];
[super deleteSections:indexSet withRowAnimation:UITableViewRowAnimationNone];
[super endUpdates];
}];
}