在工作区中打开另一个项目的情节提要

Muk*_*ore 2 ipad ios swift2

有没有办法在同一工作空间中实例化另一个项目的情节提要?通过使用不同的故事图板名称并指向其捆绑包。

小智 6

当然,您可以在同一工作区中打开另一个项目的情节提要。

假设您在框架中有一个情节提要,并且想要在应用程序中使用它。这是从应用程序代码中执行此操作的方法,

let frameworkBundle = NSBundle(identifier: "com.yourdomain.nameOfFramework") //getting the bundle for the framework
let storyboardFramework = UIStoryboard(name: "SM_Main", bundle: frameworkBundle) //pulling the storyboard from the framework
Run Code Online (Sandbox Code Playgroud)