Here is a screenshot from Xcode 8.2:
If the function does not exist, how do you add identifier to a view controller these days?
Use instead instantiateViewController(withIdentifier:)
when you would like a ViewController
and attach a view from the storyboard (UIStoryboard Id Identifier
)
instantiateInitialViewController()
is to instantiate the default view initial
, this function takes no argument and is something you wouldn't usually do programmatically.
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