I tried to do it like in the Apple's document, but my app just crashes
I create a UIViewController class with a .xib. Then in the UIViewController class that controls the view behind the modal view I write:
Code:
AddViewController *addController = [[AddViewController alloc] initWithNibName:@"AddView" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:addController];
[self presentModalViewController:navigationController animated:YES];
[navigationController release];
[addController release];
But the app just crashes. What am I doing wrong?