you haven't allocated or init'd self.detailViewController
. You created a property called detailViewController
and then never did anything with it.
try this:
- (void)viewDidLoad
{
self.detailViewController = [[DetailViewController alloc] init];
}