我有一个很大的问题:方法didSelectRowAtIndexPath
我总是得到null self.navigationController。我有一个UIViewController,它包含一个UIsegmentedControl和一个子视图。在这个子视图中,我为每个选定的段添加控制器。对于每个段有一个tableview。这里是问题:当我从这个tableview中选择一行时,我无法推送下一个控制器,因为self.navigationController为空。pushviewcontroller不工作,因为self.navigationController为空
请帮me..Here是我的代码:http://pastebin.com/qq0vf7mq
无代码:
navigationTelephone=[[UINavigationController alloc] init];
[self.view addSubview:self.navigationTelephone.view];
[self.navigationTelephone setNavigationBarHidden:YES];
[self.view addSubview:tableViewTelephone];
你的应用程序是基于导航或任何其他基于应用 – Narayana
是基于引导 – Gabrielle