I have an iOS7 application, which was based on the Xcode master-detail template, that I am porting to iOS8. One area that has changed a lot is the UISplitViewControlle
UISplitViewControlle
The code below hides the master view with animation
UIView.animateWithDuration(0.5) { () -> Void in self.splitViewController?.preferredDisplayMode = .PrimaryHidden }