[英]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.