修改完成
This commit is contained in:
@@ -645,19 +645,20 @@
|
||||
switch (type) {
|
||||
case TUIMessageBaseDataProviderDataSourceChangeTypeInsert:
|
||||
[self.tableView insertRowsAtIndexPaths:@[ [NSIndexPath indexPathForRow:index inSection:0] ]
|
||||
withRowAnimation:animation ? UITableViewRowAnimationFade : UITableViewRowAnimationNone];
|
||||
withRowAnimation:UITableViewRowAnimationNone];
|
||||
break;
|
||||
case TUIMessageBaseDataProviderDataSourceChangeTypeDelete:
|
||||
[self.tableView deleteRowsAtIndexPaths:@[ [NSIndexPath indexPathForRow:index inSection:0] ]
|
||||
withRowAnimation:animation ? UITableViewRowAnimationFade : UITableViewRowAnimationNone];
|
||||
withRowAnimation:UITableViewRowAnimationNone];
|
||||
break;
|
||||
case TUIMessageBaseDataProviderDataSourceChangeTypeReload:
|
||||
[self.tableView reloadRowsAtIndexPaths:@[ [NSIndexPath indexPathForRow:index inSection:0] ]
|
||||
withRowAnimation:animation ? UITableViewRowAnimationFade : UITableViewRowAnimationNone];
|
||||
withRowAnimation:UITableViewRowAnimationNone];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
- (void)dataProviderDataSourceDidChange:(TUIMessageDataProvider *)dataProvider {
|
||||
|
||||
Reference in New Issue
Block a user