0
-(void) viewDidAppear:(BOOL)animated {
if (!self.hasPresentedModalMenuView) {

    NSLog(@"Firing");
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"highScoresStory" bundle:nil];
UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"highScores"];
[vc setModalPresentationStyle:UIModalPresentationFullScreen];
[self presentViewController:vc animated:YES completion:nil];


} }

This Keeps Repeating over and over again. I have taken out the code below "Firing", and if I do that, it only fires once. Why does this keep firing? Thank You for any help.

  • Are you trying to present the same view controller over and over again? What class is this code in? – GracelessROB Feb 07 '14 at 02:43
  • There's not nearly enough here to answer this question. Where does this code exist? What are you actually trying to do? And if you're using storyboards, why aren't you using segues? – nhgrif Feb 07 '14 at 02:43
  • So, I have a scene, let's call it "MyScene". In my scene, I use this: MyScene *viewHigh = [[MyScene alloc] init]; UIViewController *vc = self.view.window.rootViewController; [vc presentViewController: viewHigh animated:YES completion:nil]; – user3249418 Feb 07 '14 at 03:04
  • to go to another view controller. When that view controller loads, I set the story board – user3249418 Feb 07 '14 at 03:04

0 Answers0