我試圖使用pushViewController:動畫:有一個UIViewController。我使用initWithRoot將它安置在UINavigationController中,但它仍然不起作用。使用pushViewController:動畫:
這裏是我的代碼?難道我做錯了什麼?
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];
任何想法? 感謝
它不在我的AppDelegate中。它在我的ViewController中。我正在尋找實現設置的推動和流行動畫。我有一個想法讓它工作。現在讓我給出一個鏡頭。 **編輯**設置SettingsViewController作爲UINavigationController沒有工作 – Frankrockz 2011-04-21 14:55:00