I'm trying to load a view controller with a different XIB, but for some unknown reasons it seems that it does not load it at all.
Usually my code is something like this:
WorkflowViewController *workflowViewController = [[WorkflowViewController alloc] init];
[self.navigationController pushViewController:workflowViewController
animated:YES];
[workflowViewController release];
And now I want to load another xib with the same controller so I tried:
WorkflowViewController *workflowViewController = [[WorkflowViewController alloc] initWithNibName:@"Workflow"
bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:workflowViewController
animated:YES];
[workflowViewController release];
But it does absolutely nothing! No errors, no warnings, and no xib loaded. Only a blank interface is pushed to the navigation controller :/
Any ideas about why it does so and how to fix it?
Thanks!
- Tom