【发布时间】:2009-08-23 17:18:17
【问题描述】:
我有一个两个选项卡栏,在第一个选项卡中,我可以向下钻取三个以上...但在第二个选项卡中,我不能向下钻取多个......有什么想法吗?
代码: DemoAppdelegate.m
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[window addSubview:tabBarController.view];
}
First tab controller is "FirstViewController"
in FirstViewController.m i have written to drill down to "billsummary.xib"
DemoAppDelegate *app = (DemoAppDelegate *)[[UIApplication sharedApplication] delegate];
UINavigationController *naviController = app.navigationController;
BillsSummary *aViewAController = [[BillsSummary alloc] initWithNibName:@"BillsSummary" bundle:[NSBundle mainBundle]];
[naviController pushViewController:aViewAController animated:YES];
[aViewAController release];
which is working fine.But same code for in second tab for another .xib is not working and in second tab i have not used appdelegate instead i used "self.navigationcontroller"
UINavigationController *naviController = self.navigationController;
PaymentsAmount *aViewAController = [[PaymentsAmount alloc] initWithNibName:@"PaymentsAmount" bundle:[NSBundle mainBundle]];
[naviController pushViewController:aViewAController animated:YES];
[aViewAController release];
怎么办?请问有什么帮助吗?
【问题讨论】:
-
你在什么操作环境下?这是 jQuery、WinForms、QT 吗?
标签: iphone objective-c navigation tabs