All I want if for when the user touches a skspritenode in the skscene, it will go to a different view like performseguewithidentifier. Thanks for any help. I ca
I suggest the following option: (this goes in your scene)
-(void)presentViewController{
MyViewController *myController = [[MyViewController alloc]init];
//Or instantiate any controller from the storyboard with an indentifier
[self.view.window.rootViewController presentViewController:myController animated: YES options: nil];
}
And later in your view controller, when you wish to dismiss it, do something like this:
-(void)dismissItself:(id)sender
{
[self dismissViewControllerAnimated:YES completion:nil];
}
The good thing about this option is that you won't need to store your view since at any point you can initialize it as long as the scene you are in, imports the viewcontroller's code.
Let me know if it works