Have you looked at the template master-detail project that Xcode creates? It demonstrates the approach pretty clearly. Specifically have a look at the didSelectRowAtIndexPath: method of the masterViewController
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
NSManagedObject *object = [[self fetchedResultsController] objectAtIndexPath:indexPath];
self.detailViewController.detailItem = object;
}
}
Essentially your master view controller has a property that holds a reference to your detail view controller. This allows you to send a message to the detail view controller when it needs to display an object