I want to open a window every time a if state is correct.
The thing is that the code works if i use it on a button but not on load. The error
code says that the view is not int the window hierarchy.
info *vs = [self.storyboard instantiateViewControllerWithIdentifier:@"run"];
[self presentViewController:vs animated:YES completion:nil];
I made a non repeatable timer to load a function that opens the other view. Its a bit strange but it gets the job done.