0

I have created a segue in storyboard named "CreateGame".And called it with my viewController to Load CreateGameViewController using [self performSegueWithIdentifier:@"CreateGame" sender:nil] but is is not working. it was working some time ago but suddenly it is not working.

I have taken a look of my code. My

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
NSLog(@"Segue");

} is being executed each time when i call [self performSegueWithIdentifier:@"CreateGame" sender:nil] and then CreateGameViewController's "viewDidLoad" is being executed (conformed by using NSLog(); statement) . but CreateGameViewController not showing on screen of iphone.

i am using NavigationController So type of segue is 'Push'. some times segue works or sometimes not. Please help me out.

user1120133
  • 3,244
  • 3
  • 48
  • 90
  • What's the value of `self.view` in CreateGameViewController's `viewDidLoad:`? Also, does its `viewDidAppear:` get called? Any warnings if you run the Product->Analyze menu option? – Phillip Mills May 19 '12 at 12:29
  • No its viewDidAppear: is not getting called. But Why??what can i do for this –  May 21 '12 at 05:14
  • What's the value of self.view in CreateGameViewController's viewDidLoad:? Any warnings if you run the Product->Analyze menu option? – Phillip Mills May 21 '12 at 11:21
  • There was some coding error in my code.I have fixed it.But thank you for the help sir :). –  May 23 '12 at 12:22
  • I am currently having this exact same problem, or so it seems. Could you elaborate on what the problem was? Thanks! – Phil Ringsmuth Jun 14 '12 at 14:52
  • @Phil , A for loop getting called infinite times in viewdidload –  Jul 19 '12 at 10:33

1 Answers1

0

I have a strong feeling that you are doing something in your CreateGameViewController's "viewDidLoad" (may be some looping or some recursion function calling without end) . That would have prevent the screen appears. it would be more helpful if you can provide the code of CreateGameViewController's "viewDidLoad"

Ankush
  • 2,405
  • 3
  • 22
  • 45