Using a ViewController with a dot in its name through storyboards

时间:2016-06-23 02:28:52

标签: swift interface-builder

Is it possible to reference a UIViewController with a dot in its name through a storyboard?

Login.ViewController for example?

class Login {
    class ViewController: UIViewController {}
}

1 个答案:

答案 0 :(得分:1)

Interface Builder不知道Swift中可用的嵌套类,因此您无法将嵌套视图控制器类设置为故事板中视图控制器场景的类。

Apple可能会在将来解决此问题,或者您可以考虑发布功能请求