I am working on app where I using swift 4. But when I want to go from first viewcontroller to second viewcontroller I got this error
* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayI objectAtIndex:]: index 18446744073709551615 beyond bounds [0 .. 0]'
I tried to go from first viewcontroller to second viewcontroller on button click using like bellow
let vc = storyBoard.instantiateViewControllerWithIdentifier("nextView") as NextViewController
self.presentViewController(vc, animated:true, completion:nil)
But when I clicked button my app get crashed and get above nsrangeexception error
So how do I solve this error any other solution to go from first vc to second vc?