【发布时间】:2010-11-19 04:03:47
【问题描述】:
我有一个
UIViewController-> UINavigationBar + UITableView
稍微解释一下
我通过 UIBuilder..
1: 使用 XIB 文件创建了一个新的 UIViewController
2: 使用 UIBuiler 我放了一个 UINavigationController
3: 然后我把UITableView 放在navigationBar 下面
所以它给了我..
A:UIViewController-> UINavigationBar + UITableView
现在我正在从运行良好的 Web 服务加载 UITableView 中的数据。
我再次用 sam config 制作了一个 xib,它是
B: UIViewController-> UINavigationBar + UITableView
所以现在当我尝试使用下面的代码将视图 B 推送到视图 A 时...它根本不起作用...
SelectSiteViewController *siteViewController = [[SelectSiteViewController alloc] initWithNibName:@"SelectSiteViewController" bundle:nil];
[self.navigationController pushViewController:siteViewController animated:YES];
当我检查了UINavigationController *nav = self.navigation
nav 是 0x0,我假设 NIL。
谁能告诉我这里出了什么问题..为什么它是零......我怎样才能让它工作..
非常感谢....我非常感谢您的帮助
【问题讨论】:
标签: ios objective-c uinavigationcontroller