I'm having a hard time with a UIViewController...
I have this UINavigationController whose root view controller contains a UITableView which pushes a UIViewController open cell selection.
Sample code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
MySecondViewController *controller = [[MySecondViewController alloc] initWithNibName:@"MySecondViewController" bundle:nil];
[self.navigationController pushViewController:controller animated:YES];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
Except it doesn't work as expected!
When pushing, it does the animation alright, but instead of my UIViewController there is nothing but a black screen.
The weird thing is that I can present it modally without problem.
I can also push other UIViewControllers without problem!
I looked for other post about such a problem but couldn't find any.
Others seem to have forgotten something like linking their xib or setting the rootViewController or things like that.
Any hints would be greatly appreciated.