I am implementing time-out action for my app. I referred this stackoverflow thread iOS perform action after period of inactivity (no user interaction) and did follow exactly the same approach but my app crashes when it is about to transition to a new view controller over here
UIStoryboard *myStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:NULL];
UIViewController *cont = [myStoryboard instantiateViewControllerWithIdentifier:@"abc"];
I have given the name abc in my Storyboard file under Storyboard ID. Is there any other way to load a view controller ? What is wrong with this ? Why is my app crashing ?
This is the crash message from console:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle"
I don't have .xib file associated with this controller I am trying to load. I just have abc.h and abc.m files. But in my storyboard file, I have a bunch of view controllers and in there, I have specified the class of one of the view controllers as "abc". Isn't it enough ? Or else, what is the best way to load my view controller ? using segue ?