Post

Replies

Boosts

Views

Activity

Reply to Separate Storyboard for iPhone and iPad With Multiple Windows
hi zmclearan,I was searching and found your post. I have the same problem with you but i think i've solved this.You don't need to specify the Storyboard name in your UIApplicationSceneManifest section in the info.plist file. You can leave the UISceneConfigurations in UIApplicationSceneManifest section empty and specify a storyboard at runtime in the UIApplicationDelegate method. Just like this:UIApplicationSceneManifest UIApplicationSupportsMultipleScenes UISceneConfigurations And in your UIApplicationDelegate:@available(iOS 13.0, *) func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { let config = UISceneConfiguration(name: "Default Configuration", sessionRole: .windowApplication) config.sceneClass = UIWindowScene.self config.delegateClass = SceneDelegate.self if UIDevice.current.userInterfaceIdiom == .phone { config.storyboard = UIStoryboard(name: "Main", bundle: nil) } else { config.storyboard = UIStoryboard(name: "Main_ipad", bundle: nil) } return config }
Mar ’20