I have view controller which is the main interface contains options etc...
我有视图控制器,它是主界面包含选项等...
i want to transition from 1st view controller > tab controller
我想从第一个视图控制器>标签控制器转换
now once at tab controller i want to add more tabs as by default xcode only creates two.
现在一旦在tab控制器我想添加更多标签,因为默认情况下xcode只创建两个。
q) how you add more tabs in storyboarding
q)如何在故事板中添加更多标签
I embeded the 1st view controller in tab controller but it crashed xcode
我将第一个视图控制器嵌入到选项卡控制器中但它崩溃了xcode
q) how to avoid crashing and making the flow seems better
q)如何避免崩溃并使流动看起来更好
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.
任何建议,想法将受到欢迎:来自Android活动和意图我不知道什么是最好的解决方案,所以欢迎所有输入。
UPDATE: i guess what i was trying to ask and didnt made it clear is
更新:我猜我想问的是什么,并没有说清楚
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.
我有视图控制器我希望首先加载,然后单击三个按钮之一转到选项卡控制器,这是当我执行编辑器>嵌入导航控制器时xcode崩溃的地方。
2 个解决方案
#1
5
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.
我想你可能会比跟随故事板教程更糟糕。我发现Ray Wenderlich相当不错。事实上,我甚至购买了他的书以获得整件事。
See http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1
见http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1
#2
20
How do you add more tabs in storyboarding?
如何在故事板中添加更多标签?
Just add another view controller to the storyboard. Then, control-drag a connection from the tab controller to the new view controller, and choose "Relationship - viewControllers" from the popup menu that appears.
只需将另一个视图控制器添加到故事板。然后,控制 - 从选项卡控制器拖动连接到新视图控制器,并从出现的弹出菜单中选择“关系 - viewControllers”。
How do you avoid crashing and improve the flow?
你如何避免崩溃和改善流量?
I've seen the storyboard editor crash Xcode every once in a while. If you have time, report a bug to Apple. Chances are that they already know about the problem, but another bug report never hurts, and it may increase the priority of the bug. Other than that, relaunch Xcode and continue what you were doing -- it usually works fine the second time around.
我已经看过故事板编辑器每隔一段时间就会崩溃Xcode。如果您有时间,请向Apple报告错误。有可能他们已经知道了这个问题,但另一个错误报告永远不会受到伤害,并且可能会增加错误的优先级。除此之外,重新启动Xcode并继续你正在做的事情 - 它通常第二次正常工作。
Improving the flow of the program from the user's point of view is a design problem; one approach is to try whatever you think will work best first, and then test thoroughly to identify the rough spots. Fix and repeat as necessary, and be sure to have other people try it too.
从用户的角度改进程序的流程是一个设计问题;一种方法是尝试任何你认为最好的方法,然后彻底测试以找出粗糙的斑点。根据需要修复并重复,并确保让其他人也尝试。
#1
5
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.
我想你可能会比跟随故事板教程更糟糕。我发现Ray Wenderlich相当不错。事实上,我甚至购买了他的书以获得整件事。
See http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1
见http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1
#2
20
How do you add more tabs in storyboarding?
如何在故事板中添加更多标签?
Just add another view controller to the storyboard. Then, control-drag a connection from the tab controller to the new view controller, and choose "Relationship - viewControllers" from the popup menu that appears.
只需将另一个视图控制器添加到故事板。然后,控制 - 从选项卡控制器拖动连接到新视图控制器,并从出现的弹出菜单中选择“关系 - viewControllers”。
How do you avoid crashing and improve the flow?
你如何避免崩溃和改善流量?
I've seen the storyboard editor crash Xcode every once in a while. If you have time, report a bug to Apple. Chances are that they already know about the problem, but another bug report never hurts, and it may increase the priority of the bug. Other than that, relaunch Xcode and continue what you were doing -- it usually works fine the second time around.
我已经看过故事板编辑器每隔一段时间就会崩溃Xcode。如果您有时间,请向Apple报告错误。有可能他们已经知道了这个问题,但另一个错误报告永远不会受到伤害,并且可能会增加错误的优先级。除此之外,重新启动Xcode并继续你正在做的事情 - 它通常第二次正常工作。
Improving the flow of the program from the user's point of view is a design problem; one approach is to try whatever you think will work best first, and then test thoroughly to identify the rough spots. Fix and repeat as necessary, and be sure to have other people try it too.
从用户的角度改进程序的流程是一个设计问题;一种方法是尝试任何你认为最好的方法,然后彻底测试以找出粗糙的斑点。根据需要修复并重复,并确保让其他人也尝试。