我正在使用 watchOS 2 开发 AppleWatch 应用程序。我正在尝试访问 controller.swift 文件中的 Interface.storyboard 文件。我尝试了以下代码:
let storyboard = UIStoryboard(name: "Interface", bundle: nil)
let interfaceController = storyboard.instantiateViewControllerWithIdentifier("InterfaceControllerPage") as! InterfaceController
但它在第一行给了我以下错误 -Use of unresolved identifier 'UIStoryboard'
那么如何在 watchkit 中访问 Storyboard?
基本上我正在尝试从最后一个视图返回初始视图,因此尝试在此链接上遵循已接受的答案。
谢谢!