mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
fix crash: scrollToRowAtIndexPath needs to be used in main thread
This commit is contained in:
parent
5b10aaaacf
commit
d687aeabf9
1 changed files with 2 additions and 1 deletions
|
|
@ -215,8 +215,9 @@ static NSString *const kAllTestsName = @"Run All tests";
|
|||
LOGI(@"Test Passed!");
|
||||
test.state = TestStatePassed;
|
||||
}
|
||||
[self.tableView scrollToRowAtIndexPath:index atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
|
||||
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[self.tableView scrollToRowAtIndexPath:index atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
|
||||
[self updateItem:paths withAnimation:TRUE];
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue