I setup a project on XCode 4.3 and IOS 5 without using storyboards for both iPhone and iPad using the default Master/Detail setup from the create new project dialog.
The
In the master/detail template, Apple uses the following code in the MasterViewController (i.e. the one on the left):
- (void)viewDidLoad {
[super viewDidLoad];
self.detailViewController = (MYDetailViewController *)[[self.splitViewController.viewControllers lastObject] topViewController];
}
With the property on MasterViewController defined as:
@property (strong, nonatomic) MYDetailViewController *detailViewController;