【发布时间】:2011-08-10 08:57:47
【问题描述】:
我正在尝试将 pushViewController: animated: 与 UIViewController 一起使用。我将它放在带有 initWithRoot 的 UINavigationController 中,但它仍然无法正常工作。
这是我的代码?我做错了吗?
CloudappSettingsViewController *cloud = [[CloudappSettingsViewController alloc] initWithNibName:nil bundle:nil];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:cloud];
[self pushViewController:nav animated:YES];
[cloud release];
当它到达[self pushViewController:nav animated:YES];时总是崩溃
有什么想法吗? 谢谢
【问题讨论】:
标签: iphone uiviewcontroller uinavigationcontroller push