I have built my table using Storyboards. I have a Table View embedded in a Navigation Controller. My Details View is also a Table View Controller embedded in a Navigation Controller. Here is my code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NHCDependantDetailsViewController *detailView = [self.storyboard instantiateViewControllerWithIdentifier:@"AddDependant"];
[self.navigationController pushViewController:detailView animated:YES];
}
I’ve discovered that the problem is that my Navigation Controller is null. Unfortunately, I have no idea how or where to correctly fix this. Thank you in advance.
EDIT: I have followed the advice below to set the navigation controller as the initial view controller, but now I cannot reach my TableView. Perhaps the problem is evident in this image of my storyboard? Having two nav arrows there can’t be good…

I assume that your storyboard has 1 Table View which is embedded in a Navigation Controller and NHCDependantDetailsViewController which is also embedded in a Navigation Controller.
First of all, you need to set the the Navigation Controller of your table view as the initial view controller by ticking “Is Initial View Controller” on the attribute inspector.
Secondly, I think it is not necessary to embed NHCDependantDetailsViewController in a Navigation Controller as you can push many view controller to your main navigator controller.