添加选项卡栏控制器后,展开不触发转场和导航按钮项目 [英] Unwind segue and nav button items not triggering after tab bar controller added

查看:24
本文介绍了添加选项卡栏控制器后,展开不触发转场和导航按钮项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现一个 unwind segue,它将我从最后一个视图控制器带回 todo-list 控制器.

I'm trying to implement an unwind segue that will take me from the last view controller back to the todo-list controller.

这是我的故事板

没有标签栏控制器,展开转场工作正常.但是,一旦我添加了标签栏控制器,展开就停止触发.

Without the tab bar controller, the unwind segue works fine. However, as soon as I add the tab bar controller, the unwind stopped triggering.

我做错了什么?

谢谢

此外,在实现标签栏控制器时,不会触发在最后一个视图控制器中的栏按钮上创建的操作

Also, actions created on the bar button in the last view controller do not trigger when the tab bar controller is implemented

推荐答案

我遇到了类似的情况,我能够通过在属性中将 Modal segue 设置为Presentation: Current Context"而不是Default"来解决它检查员(此处截图:https://cloudup.com/cHFyH8OOY9D).

I have had a similar situation and I was able to resolve it by setting the Modal segue to "Presentation: Current Context" instead of "Default" in the Attributes Inspector (screenshot here: https://cloudup.com/cHFyH8OOY9D).

也就是说,上面截图中表格视图和第二个导航控制器之间的转接箭头.

That is, the segue arrow between the Table View and the second Navigation Controller in your screenshot above.

这篇关于添加选项卡栏控制器后,展开不触发转场和导航按钮项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆