I know there are lots of other questions concerning this but they don't fully explain my issue.
I go from my initial view controller SAGViewController
to another SAGHomeScreenViewController
via an identified storyboard custom segue, when the relevant button is pressed :
-(IBAction)goNewGame{
[self performSegueWithIdentifier:@"startHomeSegue" sender:self];
}
It works fine but I still get the warning:
Warning: Attempt to present SAGHomeScreenViewController: 0xc43b800 on SAGViewController: 0xbaaa9f0 whose view is not in the window hierarchy!
If I comment out the performSegueWithIndentifer
, the segue still works but I don't get the warning:
-(IBAction)goNewGame{
//[self performSegueWithIdentifier:@"startHomeSegue" sender:self];
}
Why? Note that I don't have a navigation controller.
Any advice here would be appreciated, the segue still works but I don't want any warnings that I don't understand!