fix inconsistency due to itemcount change
This commit is contained in:
parent
774cacc0fc
commit
eba0261082
@ -228,7 +228,12 @@ - (void)blendSubNode:(NSDictionary *)subModel {
|
||||
return;
|
||||
}
|
||||
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:[key integerValue] inSection:0];
|
||||
@try {
|
||||
[self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
||||
}
|
||||
@catch(id exception) {
|
||||
[self.doricContext.driver.registry onException:exception inContext:self.doricContext];
|
||||
}
|
||||
}];
|
||||
}
|
||||
}];
|
||||
@ -252,7 +257,12 @@ - (void)callItem:(NSUInteger)position height:(CGFloat)height {
|
||||
return;
|
||||
}
|
||||
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:position inSection:0];
|
||||
@try {
|
||||
[self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
||||
}
|
||||
@catch(id exception) {
|
||||
[self.doricContext.driver.registry onException:exception inContext:self.doricContext];
|
||||
}
|
||||
}];
|
||||
});
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user