Commit d687aeab authored by DanmeiChen's avatar DanmeiChen

fix crash: scrollToRowAtIndexPath needs to be used in main thread

parent 5b10aaaa
......@@ -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];
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment