小智 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)