如何从故事板中对一个笔尖执行segue [英] How to perform segue to a nib from storyboard
问题描述
我有90%的当前项目在故事板中完成,但我也使用单个xib视图控制器来输入你的pin视图,因为这是它被集成到我导入项目的github项目中的方式。我需要从xib回到故事板。使用推送方法从故事板到xib很容易,但现在我想在故事板中模态到另一个视图。有什么建议么?首先,我尝试将xib转换为storyboard中的视图,但我失败了,因为它设计为使用nibs。
I have 90% of my current project done in storyboard but I am also using a single xib view controller for an "enter your pin" view because this is the way it was integrated in a github project that I imported into my project. I need to segue from the xib back to storyboard. Going from storyboard to the xib was easy with a push method but now I would like to modal to another view in storyboard. Any suggestions? First, I tried to convert the xib to a view in storyboard but I failed as it was designed to work with nibs.
推荐答案
您可以通过调用其实例化方法在故事板上创建任何视图控制器的新实例。
You can create a new instance of any view controller on the storyboard by calling its instantiate method.
所以执行以下操作:
[storyboard instantiateViewControllerWithIdentifier:@"identifier"];
这篇关于如何从故事板中对一个笔尖执行segue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!