The UISplitViewController has a RootViewController and the DetailViewController, when a you press a row this method gets called:
- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
You can see in the defult boilerplate code that it sets: the detailItem
of the DetailViewController, this is a pointer (id) so it can be any object you want.
The setter for detailItem is this method located in the DetailViewController:
- (void)setDetailItem:(id)newDetailItem;
If you follow the flow, it then calls - (void)configureView;
In Your example i would recommend that your 'CarMake' object that your using to populate the RootViewController Cells also holds the path of the image that you want to display for it, then set this 'CarMake' object as the detailItem then in the configureView method, get the imagePath from the object (detailItem) and create the image with it and finally setting the .image
property of an UIImageView
to the created image.
Books are good, but nothing beats hands on breaking stuff!