[英]How to get an instance of my view controller from the app delegate, storyboards, iOS6
[英]Modal View Controller with storyboards in iOS6
我是故事板的新手,但在我的新應用程序中,我創建了2個視圖控制器。 在故事板上,我將它們與模態segue連接起來。 我想基於第一個視圖控制器的“viewDidLoad”方法中的某個條件啟動模態視圖控制器。 這樣做的正確方法是什么,以便我可以根據需要更改InterfaceBuilder中的轉換?
在Interface Builder中指定segue的標識符。
調用[self performSegueWithIdentifier:@"yourIdentifierHere" sender:self];
在viewDidLoad
中。
請參閱“ View Controller編程指南”中的“ 以編程方式觸發Segue ”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.