Quote:
Originally Posted by bebus77
hi everyone,
I was able to switch xibs simply using this code since yesterday evening:
Code:
GameView *gm = [[GameView alloc] initWithNibName:@"GameView" bundle:nil];
[self presentModalViewController:gm withAnimatedTransition:UIViewControllerAnimationTransitionPushFromRight];
Today I continued working on my project but when I call the method, the app crashes and I get a SIGABRT error
Please help with any suggestion,
Thanks.
|
Hi
I was getting the same problem, but I changed the parameter initWithNibName, I put "nil" and the error disappeared.
The code is:
____________________________________________
vistas2 *vis2 = [[vistas2 alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:vis2 animated:YES];
[vis2 release];
____________________________________________
Bye