Ios 使用swift中的容器视图从UIViewController展开segue
我有一个从Ios 使用swift中的容器视图从UIViewController展开segue,ios,swift,uicontainerview,unwind-segue,Ios,Swift,Uicontainerview,Unwind Segue,我有一个从AViewController到BViewController的序列。在BViewController中,我放置了一个后退按钮和一个容器视图。此容器视图与UITableViewController连接 @IBAction func unwindToTop(segue: UIStoryboardSegue) {} 我想通过按下BViewController(容器视图外部)中的后退按钮,执行从BViewController到AViewController的展开顺序 我将此代码放入AVie
AViewController
到BViewController
的序列。在BViewController
中,我放置了一个后退按钮和一个容器视图。此容器视图与UITableViewController
连接
@IBAction func unwindToTop(segue: UIStoryboardSegue) {}
我想通过按下BViewController
(容器视图外部)中的后退按钮,执行从BViewController
到AViewController
的展开顺序
我将此代码放入AViewController
@IBAction func unwindToTop(segue: UIStoryboardSegue) {}
之后,我还按住Ctrl键并单击“上一步”按钮来展开操作。不幸的是,在我构建应用程序并单击“上一步”按钮后,出现了一个错误。有人能帮我解决这个问题吗
非常感谢您的帮助对不起,我忘了添加错误代码。这里是:
线程1:EXC_断点(code=EXC_I386_BPT,subcode=0x0)
==>在调试中,我得到了这个:(lldb)
你应该把unwindtoop
方法放到AViewController
,然后连接按钮退出并找到unwindtoop
ups,再次抱歉。我将unwindtoop
放在AViewController
中,而不是BViewCOntroller
我将更改我的问题