I got an error message during navigating from first view controller to second view controller. My coding is like this one
let vc = LoginViewController(nibNam
Swift3:
let storyboard = UIStoryboard(name: "Main", bundle: nil) let vc = storyboard.instantiateViewController("LoginViewController") as UIViewController self.navigationController?.pushViewController(vc, animated: true)
Try this out. You just confused nib with storyboard representation.