Storyboard - ViewController 到标签栏控制器 [英] Storyboard - ViewController to tab bar controller
问题描述
我有视图控制器,它是主界面,包含选项等...
I have view controller which is the main interface contains options etc...
我想从第一个视图控制器转换>标签控制器
i want to transition from 1st view controller > tab controller
现在在选项卡控制器上我想添加更多选项卡,因为默认情况下 xcode 只创建两个.
now once at tab controller i want to add more tabs as by default xcode only creates two.
q) 如何在故事板中添加更多标签
q) how you add more tabs in storyboarding
我在选项卡控制器中嵌入了第一个视图控制器,但它崩溃了 xcode
I embeded the 1st view controller in tab controller but it crashed xcode
q) 如何避免崩溃并使流程看起来更好
q) how to avoid crashing and making the flow seems better
欢迎任何建议和想法:来自 android 活动和意图,我不确定这里的最佳解决方案是什么,所以欢迎所有输入.
any suggestions, ideas will be welcomed: coming from android activities and intents i'm not sure what is best solution here so welcome all input.
更新:我想我想问的是什么但没有说清楚是
UPDATE: i guess what i was trying to ask and didnt made it clear is
我有视图控制器,我希望首先加载它,然后单击三个按钮之一转到选项卡控制器,这是当我执行 Editor > 嵌入导航控制器时 xcode 崩溃的地方.
i have view controller i want this to load first and upon clicking one of the three buttons go to tab controller which is where xcode crashes when i do Editor > embed within nav controller.
推荐答案
我想你可能会比按照 Storyboard 教程做的更糟.我发现 Ray Wenderlich 相当不错.事实上,我什至购买了他的书来获得全部内容.
I guess you could do worse than follow along a Storyboard tutorial. I found Ray Wenderlich's rather good. In fact I even purchased his book to get the whole thing.
参见 http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1
这篇关于Storyboard - ViewController 到标签栏控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!