The main idea would be as follows:
- (IBAction)tableViewDoubleClicked
{
...
[window setContentView:myDetailView];
}
Please note that this may free up the view that was previously used as a contentViewwindow, so if you plan to share multiple views of the content, you will need to save them elsewhere.
See Apple documentation for more details .
source
share