我想創建一個應用程序,使用cocos2d作爲主屏幕,併爲一些表和信息使用UINavigationController。我使用此代碼來嘗試一個UINavigationController(設定)推入視圖在CCLayer中添加一個UINavigationController
UINavigationController *controller = [[UINavigationController alloc] init];
Settings *newTableViewController = [[Settings alloc] init];
[controller pushViewController:newTableViewController animated:YES];
該代碼在一個CCLayer執行,並且設置是一個UINavigationController。
我得到這個錯誤
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing a navigation controller is not supported'
這是否意味着我不能把一個NaviagationController到CCLayer? 請幫助。
是的,當我發佈這個問題後,我正在考慮這個問題。謝謝! – mattblessed
歡迎你=) – Morion
嗨,有沒有一種方法,我可以動畫一個UITableView,就像一個UINavigationController的方式?例如,在iPhone上的設置應用程序中,當您「向下鑽取」並觸摸單元格時,過渡動畫就是我想要創建的。你有什麼想法? – mattblessed