Hiding the master view controller with UISplitViewController in iOS8

后端 未结 10 991
囚心锁ツ
囚心锁ツ 2020-12-12 19:06

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

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 19:34

    The code below hides the master view with animation

    UIView.animateWithDuration(0.5) { () -> Void in
                self.splitViewController?.preferredDisplayMode = .PrimaryHidden
            }
    

提交回复
热议问题