I have created a new storyboard named "Start.storyboard", but when I change Main Interface to "Start" nothing happened, The app just started with default storyboard "Main.storyboard". I'm using Xcode 11.2.1 and iOS 13.2.3
Also I have tried to change the rootViewController from (AppDelegate) didFinishLaunchingWithOptions as the code below:
let sb = UIStoryboard(name: "Start", bundle: nil)
let vc = sb.instantiateViewController(withIdentifier: "PhoneVC")
self.window?.rootViewController = vc
but I got the same result, Main storyboard can't be changed.
Apple introduced them in iOS 9 and macOS 10.11. They do exactly what I needed. They allow you to break a storyboard up into multiple, smaller storyboards. A storyboard reference ties multiple storyboards together, creating one, large, composite storyboard.
there is a key in plist file and under "Targets" -> Custom iOS Target Properties "Main storyboard file base name". There default is "Main". So if you want any other storyboard, replace "Main" with your file name. By selecting storyboard from main interface, in plist, it automatically changed.
Go to Info.plist
and update Application Scene Manifest
. Change the storyboard name in default configuration of Application Session Role
. Also make sure one of your ViewController in storyboard is marked as is Initial View Controller
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With