0
我有UINavigationController的的UINavigationController和UITableView的
在我的firstView一个问题,我有我button.If点击按钮,它应该在secondview打开的tableview。如果我点击tableviewcell被连接到第三view.it是第二和thirdview用于导航栏
请帮助解决此问题。
我有UINavigationController的的UINavigationController和UITableView的
在我的firstView一个问题,我有我button.If点击按钮,它应该在secondview打开的tableview。如果我点击tableviewcell被连接到第三view.it是第二和thirdview用于导航栏
请帮助解决此问题。
创建这样我张贴示例代码navigationcontroller
HomeScreen *homeScreenObject=[[HomeScreen alloc] initWithNibName:@"HomeScreen" bundle:nil];
self.navController =[[UINavigationController alloc] initWithRootViewController:homeScreenObject];
[homeScreenObject release];
[window addSubview:[navController view]];
// Override point for customization after application launch
[window makeKeyAndVisible];
navController是在头文件 的UINavigationController * navController声明实例变量;
现在您firstviewcontroller创建一个IBAction为,并与行动结合您的按钮的向下触摸事件,并在该方法中使用这些线路
ViewController *ViewControllerObject = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
[self.navigationController pushViewController:ViewControllerObject animated:YES];
[ViewControllerObject release];
这样的viewController应有的tableView和的tableView的委托方法“didSelectRowAtIndexPath方法”使用上面的代码进一步导航