HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – 单击时未调用UITableView didSelectRowatIndexPath大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
非常奇怪!它适用于所有地方但在这里

- (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方法.

解决方法

解决方案是在主线程上加载第二个控制器

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

大佬总结

以上是大佬教程为你收集整理的ios – 单击时未调用UITableView didSelectRowatIndexPath全部内容,希望文章能够帮你解决ios – 单击时未调用UITableView didSelectRowatIndexPath所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。