简体   繁体   English

从UIViewController到UITableViewController的Segue无效

[英]Segue from UIViewController to UITableViewController has no effect

The issue I am having is in this particular part of the storyboard. 我遇到的问题是情节提要的特定部分。 When the table view loads it is populated correctly and everything works fine, then one of the cells can be selected and the view on the right loads up with everything fine(push). 加载表格视图后,将正确填充该表格,并且一切正常,然后可以选择一个单元格,并在右侧的视图中加载一切正常(按下)。 However, when selecting 'Back to News' nothing happens(push). 但是,当选择“返回新闻”时,没有任何反应(按)。 If I press the button (nothing happens) and then select one of the other items housed in the tab bar and then select the news tab again the app has returned to the table view and all is well. 如果我按下按钮(什么都没有发生),然后选择选项卡栏中的其他项之一,然后再次选择新闻选项卡,则应用程序已返回到表格视图,一切都很好。

The layout can be seen here: http://imgur.com/EaMbM4i 布局可以在这里看到: http : //imgur.com/EaMbM4i

I am not sure what code is needed but can post whatever is requested. 我不确定需要什么代码,但是可以发布任何要求的代码。

My question is this, what is wrong with segue between the 'Back to News' button and the UITableViewController? 我的问题是,“返回新闻”按钮和UITableViewController之间的查询有什么问题?

Apologies for any mistakes made, it is my first post. 对于任何错误,我深表歉意,这是我的第一篇文章。

You dont want to push to the tableview controller again from the news detail view controller. 您不想从新闻详细信息视图控制器再次推送到tableview控制器。 There will be a back button by default since it is in navigation controller. 由于它位于导航控制器中,因此默认情况下将有一个后退按钮。

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

相关问题 从UIViewController选择到UITableViewController - segue from UIViewController to UITableViewController 如何以编程方式从 UITableViewController 顺利切换到 UIViewController - How to segue smoothly from UITableViewController to UIViewController programmatically 如何在从UITableViewController到UIViewController的展开中声明UITableViewController - How to declar UITableViewController in Unwind segue from UITableViewController to UIViewController 使用数组值Swift3从UITableViewController到UIViewController执行Segue - Perform Segue from UITableViewController to UIViewController with Array Value Swift3 从Xib中选择到UIViewController - Segue to UIViewController from a xib 应用因UITableViewController的选择而崩溃 - App crashes on segue from UITableViewController 将标记从UITableViewController添加到UIViewController - Add markers from UITableViewController to UIViewController 从UITableViewController将NSFetchedResultsController迁移到UIViewController - Migrating NSFetchedResultsController to UIViewController from UITableViewController 从UITableView(不是UITableViewController)转到UIViewController - Go from UITableView(not a UITableViewController) to a UIViewController 未通过segue连接在UIViewController和UITableViewController之间传递数据 - Passing data between UIViewController and UITableViewController not connected via segue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM