【发布时间】:2013-12-07 14:06:00
【问题描述】:
非常非常奇怪!它适用于任何地方,但在这里:
- (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];
}
如果我单击该行,MyViewController 会在几秒钟后显示!
如果我单击两次,它会迅速显示!
在 Profiler 中,单击一下没有任何反应...
我没有didDeselectRowAtIndexPath 方法。
【问题讨论】:
-
您的单元格顶部是否有任何手势识别器或视图可能会捕捉到点击?
-
没有人...如果我使用 [[self navigationController] pushViewControllerRetro:schedaCliente];
-
您的视图控制器初始化代码会阻塞吗?使用 Instruments -> Time Profiler 查看您的任何代码是否花费了很长时间。
-
我做到了,但时间配置文件几乎没有帮助,因为两次点击之间似乎没有发生任何事情:(
-
第一个提示:如果我设置动画:NO,节目是实时的! (iOS7)
标签: ios uitableview