views:

48

answers:

1

It is worth noting that this part of the app (this option from the main menu) was working perfectly before. I then programmed the next option from the main menu, and now this one is not working anymore.

I know the code I've written works, but there is something wrong with either the class or the xib, because it worked when I switched it to call a different class/xib from:

UIViewController *nextController = [[OneMethodController alloc] initWithNibName:@"OneMethodController" bundle:nil];

to:

UIViewController *nextController = [[SecondMethodController alloc] initWithNibName:@"SecondMethodController" bundle:nil];

When I try to load the first class/xib (which used to work, as I said), the app just stalls indefinitely. There is no error and the app does not crash.

Any ideas? THANKS!!

A: 

Note that *nextController should most likely be initialized as

SecondMethodController *nextController = [[SecondMethodController alloc] init . . .

And not as

UIViewController *nextController = [[SecondMethodController alloc] init . . .

TomH