UISplitViewController in portrait: how to hide master popover programmatically?

前端 未结 3 1748
执笔经年
执笔经年 2020-12-14 23:01

In my UISplitViewController the master controller is a UINavigationController. When in portrait mode I would like to keep the navigation controller

3条回答
  •  攒了一身酷
    2020-12-14 23:34

    The standard iPad sample for SplitViewController in iOS5 does about the same as the elaborate answer, but the popoverController is called masterPopoverController.

    And creating the property iOS5 style as _popoverController does not work, because there as already an ivar with that name in UIViewController.h.

提交回复
热议问题