简体   繁体   English

XCODE 5-情节提要Segues Push与Modal

[英]XCODE 5 - Storyboard Segues Push vs Modal

I am currently learning iOS development and I began with a simple Tabbed Application. 我目前正在学习iOS开发,并且从一个简单的选项卡式应用程序开始。 It has the default First and Second View in it. 它具有默认的“第一视图”和“第二视图”。 I added a TableView with static cells content. 我添加了带有静态单元格内容的TableView。 I then added another View Controller. 然后,我添加了另一个视图控制器。 I created a Segue using the storyboard. 我使用情节提要创建了Segue。 When I set the transition to modal, it works fine. 当我将过渡设置为模态时,它可以正常工作。 When I set it to push, the app is crashing (Uncaught exception). 当我将其设置为push时,应用程序崩溃了(未捕获的异常)。

  1. Any idea why? 知道为什么吗?
  2. How can I get more information regarding the exception? 如何获得有关该异常的更多信息? Can I make the app stops when it encounters an exception? 遇到异常时,我可以使应用程序停止吗?

想通了..我需要添加一个导航控制器才能使用推...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS情节提要模态关卡和内存 - iOS Storyboard Modal Segues and Memory 处理情节提要中视图控制器之间的模态选择 - dealing with modal segues between viewcontrollers in a storyboard 用于推模型与模态段的用例? - Use case for push versus modal segues? Xcode Storyboard是否应该支持带有“动态原型”单元格的UITableView的段落? - Should Xcode Storyboard support segues from a UITableView with 'dynamic prototype' cells? 在Xcode故事板中禁用推送动画 - disable push animation in Xcode storyboard 使用Storyboard在XCode 4中以模态方式推送视图时出现“开始/结束外观转换的不平衡调用”警告 - “Unbalanced calls to begin/end appearance transitions” warning when push a view in a modal way in XCode 4 with Storyboard 故事板没有堆叠? - Storyboard segues without stacking? 情节提要应用推送,而无需单击按钮(模式,推送,自定义) - storyboard apply push without clicking on Button for(modal,push,custom) 情节提要剧情和接收内存警告 - Storyboard segues and receiving memory warning 如何在几个视图控制器之间创建一系列模态/推送segue以保持所有推/模态视图在同一堆栈上? (使用笔尖) - How to create a sequence of modal/push segues between few view controllers to keep all the push/modal views on the same stack? (using nibs)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM