Hello (again!)
I have to make a navigation controller programatically.
I do exactly:
create a file (UIViewController)
delete the view
create a window
link the IBOutlet in File's owner like a View
create a UINavigationController
link the window's rootViewController with UINavigationController
In Interface Builder I have this:
[Window]
(rootViewController)---(Navigation Controller)
(View)---(File's Owner)
I make everything in "Interface Builder"
The problem: I have the code:
Code:
- (IBAction)addPlace:(id)sender {
AddPlacePart2Controller *controller = [[AddPlacePart2Controller alloc] initWithNibName:@"AddPlacePart2Controller" bundle:nil];
[self.navigationController pushViewController:controller animated:YES];
[controller release];
}
After press a button and execute this code block, don't happen anything...
No error and no view change...
Someone, please??