I'm developing an iOS8 iPad application which uses a UISplitViewController as it's root view controller similar to the master-detail template.
My app requires me to display both master and detail views at all times, side by side in both portrait and landscape. I have this set up and everything is working well with one exception. I need to be able to expand the master view full screen, thus hiding the detail view. I'm well aware that the opposite is easily achievable (expanding detail to full screen hiding master). I am essentially looking for the same functionality but in reverse.
This is the code that provides the expand/contract functionality to the detail view:
self.navigationItem.leftBarButtonItem = self.splitViewController.displayModeButtonItem;
self.navigationItem.leftItemsSupplementBackButton = YES;
Is it possible to achieve this effect on the MASTER view controller? I need this effect because my MASTER view controller is my dominant view controller with lots of information displayed in table format whereas my detail view controller does not need much screen estate.
I have tried to simply just set the preferredPrimaryColumnWidthFraction = 1
to simply cover the detail view but this seems more like a hack and does not provide the default animation of the expanding of the detail view.
No I cannot have my table set as a detail (and appearing on right).
No I cannot have my detail view set as a master (and appearing on the left).
No I do not want to use an open source library to achieve this (if possible)