I am attempting to use storyboard to switch scenes so my app doesnt just run when tapped/clicked.
The first scene is a controller scene which just shows an app intro and has two buttons one for start and other for cancel.
They both do the scene switch but neither activate the associated UIViewController.
I had not coded any action for the buttons just simply linked them to the associated subclassed UIViewControllers (eg Run and EndRun);
I added an NSLog entry in the viewDidLoad section in both of those and confirmed neither are activated.
The scene switching works fine going from intro to run and if that scenes stop button is tapped to the ended scene which is where the cancel button ends up.
I added an action in the initial UIViewController for the start button and an NSLog entry and linked the button to the action and that does show the button was tapped when it was.
I added the following, hoping it would do the segue:
[self performSegueWithIdentifier:@"RunSegue" sender:nil];
and got the message:
Attempt to present <UIViewController: 0x7be3f1e0> on <ViewController: 0xbfbfc50> whose view is not in the window hierarchy.
I am not sure if the UIViewController is refering to a class or instance of UIViewController and if the latter how do I got baout finding its name.
If its an instance I dont believe I have a permanent one with that name. (Not even sure you can as its a class name isnt it).
The initial UIViewController is called ViewController as that was what was generated when I created the project.
My app start UIViewController is called RunViewController and my app cancel or stop one is called EndRunViewController.
So where did the message get the UIViewController bit from and is the ViewController bit referring to my initial UIViewController?
Also if its the initial UIViewController how do I get it into the window hierarchy?
Anyone help?