Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 使用swift中的容器视图从UIViewController展开segue_Ios_Swift_Uicontainerview_Unwind Segue - Fatal编程技术网

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
我将更改我的问题