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
Swift WatchKit应用程序中的多个故事板_Swift_Uistoryboard_Watchkit - Fatal编程技术网

Swift WatchKit应用程序中的多个故事板

Swift WatchKit应用程序中的多个故事板,swift,uistoryboard,watchkit,Swift,Uistoryboard,Watchkit,有没有办法在WatchKit应用程序中使用多个故事板?据我所知,你只能使用一个,这使得在一个大团队中工作很困难。UIStoryboard上提供的API如下: func instantiateInitialViewController() -> AnyObject func instantiateViewControllerWithIdentifier(_ identifier: String) -> AnyObject! 它们都不支持WatchKit对象。此外,用于重新加载不同接口

有没有办法在WatchKit应用程序中使用多个故事板?据我所知,你只能使用一个,这使得在一个大团队中工作很困难。
UIStoryboard
上提供的API如下:

func instantiateInitialViewController() -> AnyObject
func instantiateViewControllerWithIdentifier(_ identifier: String) -> AnyObject!
它们都不支持WatchKit对象。此外,用于重新加载不同接口控制器的
WKInterfaceController
类方法仅采用标识符数组

class func reloadRootControllersWithNames(_ names: [AnyObject],
                             contexts contexts: [AnyObject]?)

根据所有这些信息,我很肯定这是不可能的。我想问问那里的专家,你是否可以证实我的怀疑。

没有WatchKit目前不支持多个故事板文件

我相信这是由于当前在iPhone和Apple Watch上远程运行代码的复杂性的早期阶段造成的

将监视目标添加到项目时,WatchKit会自动为您生成和配置所需的情节提要。此故事板包括WKGlease控制器和WKUserNotificationInterfaceController,您只需要一个


谢谢你的建议。我先走一步,提交了一份申请。其他所有对此问题和评论的人,如果您希望看到此功能得到支持,请复制该雷达。@cnoon很好,我现在提交一份复制文件,他们更新了雷达:“这已在最新的Xcode 7 beta中修复。”