不能使Swift IOS开发出口

时间:2016-08-01 12:25:58

标签: ios swift

我有一个问题,我有2个ViewController.swift文件。

在他们中没有一个我能做出口。

enter image description here

1 个答案:

答案 0 :(得分:4)

确保画布中的ViewController班级检查员与您想要出口的ViewController班级匹配。

例如,如果您想在SecondViewController中设置出口,则界面构建器中的ViewController类检查器也应设置为SecondViewCotroller

enter image description here

现在有效!

enter image description here