2013-10-02 204 views
-4

我做了一個故事板遊戲。我設置了3條生命,現在我希望當所有的生命都去年調用另一個視圖控制器,如結果viewcontroller播種得分結果。我應該怎麼做?打電話給其他控制器?從ViewController導航到另一個ViewController

+0

你看了關於塞格斯任何文件? – Wain

+0

是的,我知道如何從moddal從一個移動到另一個,但與按鈕不與如果統計例如當生命是0打開結果控制器。多數民衆贊成我的question.thank你 – user2643077

+0

你應該更新你的問題與你最後的評論,因爲它更清晰,也看看這個http://stackoverflow.com/questions/12992716/navigate-to-another-viewcontroller-programmatically-using -custom-SEGUE。 – BooRanger

回答

0

試試這個代碼加載你的視圖控制器:

YourViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"YourIdentifire"]; 

[self.navigationController pushViewController:controller animated:YES]; 
相關問題