iOS:Fix List crash on iOS 9.0
This commit is contained in:
parent
972550f668
commit
c813787318
@ -222,9 +222,15 @@ - (void)callItem:(NSUInteger)position height:(CGFloat)height {
|
|||||||
}
|
}
|
||||||
self.itemHeights[@(position)] = @(height);
|
self.itemHeights[@(position)] = @(height);
|
||||||
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:position inSection:0];
|
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:position inSection:0];
|
||||||
[UIView performWithoutAnimation:^{
|
if (@available(iOS 10.0, *)) {
|
||||||
[self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
[UIView performWithoutAnimation:^{
|
||||||
}];
|
[self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
||||||
|
}];
|
||||||
|
} else {
|
||||||
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
|
[self.view reloadData];
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (DoricViewNode *)subNodeWithViewId:(NSString *)viewId {
|
- (DoricViewNode *)subNodeWithViewId:(NSString *)viewId {
|
||||||
|
Reference in New Issue
Block a user