UITableView didSelectRowatIndexPath not called on single tap

ios, uitableview

Solution

The solution is to put on the main thread the loading of the second controller

 dispatch_async(dispatch_get_main_queue(), ^{ 
       // Code here 
 });

Problem

Very very strange! It works everywhere but here: ``` - (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { MyViewController* cliente = [[MyViewController alloc] initWithModeAndClientId:2 c:cid]; cliente.delegate = self; UINavigationController *n = [[UINavigationController alloc] initWithRootViewController:cliente]; n.navigationBarHidden = NO; [[n navigationBar] setBarStyle:UIBarStyleBlack]; [self presentViewController:n animated:YES completion:nil]; } ``` If I tap by a single click on the row, the `MyViewController` shows after seconds! If I click twice, it shows rapidly! In the Profiler, at single click nothing happens... I have no `didDeselectRowAtIndexPath` method.

Original source

Related problems