Hello there, i would like to know how to show a storyboard from a swift file; In my case i tried many times but it won’t work..
So, i made a Login/Sign-Up page were the user can login/sign-up to my application, and i called it Login.storyboard, then i have another file which is SettingsViewController.swift where i have my menù etc... and till here everything works, but then i made a voice on the SettingsViewController.swift which is:
case 0:
if let loginStoryboard = UIStoryboard(name: "Login", bundle: nil).instantiateViewController(withIdentifier: "LoginNavigationController") as? UINavigationController {
present(loginStoryboard, animated: true, completion: nil)
} else {
print("Failed to instantiate LoginNavigationController from Login.storyboard")
}
So, this stuff should show my Login.storyboard, but when i press on the button from my phone, everything stops and the last message i receive from logs is:
libc++abi: terminating due to uncaught exception of type NSException
Does somebody know what should i fix? Thanks.