How to use a UISplitViewController as a Modal View Controller?

后端 未结 6 531
没有蜡笔的小新
没有蜡笔的小新 2020-12-10 07:04

I am trying to display a UISplitViewController presenting it as a Modal View Controller in my iPad app. I manage to have it display, but for some reason there is a gap to th

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 07:17

    Technically, this is what I did:

    1/ Subclass a UIViewController ie. @interface aVC: UIViewController

    2/ In the viewDidLoad, set up a splitViewController, ie. aSplitVC

    3/ Then self.view = aSplitVC.view

    After all, present aVC as modalViewController

提交回复
热议问题