Clicked the tableView in
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
Execute
[self dismissViewControllerAnimated:YES completion:nil];
The current interface will not close immediately and there will be a 3-4s delay. If you click anywhere on the current interface again, it will close immediately.
This problem does not occur when using Button to execute the above code to close it.
I also encountered the exact same problem. It can be solved by adding the following
I have also printed that the threads are all main threads, but I don’t understand why such a problem occurs
<NSThread: 0x17007a040>{number = 1, name = main}