我已經開始使用storyboard的iOS應用程序。在我的應用程序中,mainStoryBoard從導航控制器開始。從導航的視圖控制器,我通過編程方式將控制器傳遞給第二個視圖控制器,並通過編程方式推送([self performSegueWithIdentifier:@"currencyClick" sender:self])
。在第二個視圖控制器上,我有一個按鈕。點擊按鈕時,我想回到導航的視圖控制器,如[self.navigationController popViewControllerAnimated:YES]
,但這裏的self.navigationController popViewControllerAnimated:YES
不起作用。在我的項目中,我在Navigationcontroller中取消了Shows navigation Bar
。xcode 4.5中的iOS Storyboard
NavigationController-(根的ViewController) - >的viewController - (推賽格瑞與[自performSegueWithIdentifier:@ 「currencyClick」 發件人:自];) - > CurrencyViewcontroller
在currencyviewController我有一個按鈕。在按鈕上單擊我想要實現導航後退按鈕單擊事件。如何以編程方式實現BACK按鈕,[self.navigationController popViewControllerAnimated:YES]
在這種情況下不起作用。
請幫我解決這個問題..提前
顯示您的代碼。 –