UIPopoverPresentationController displaying popover as full screen

前端 未结 6 2073
小蘑菇
小蘑菇 2020-12-24 12:24

I am trying to use UIPopoverPresentationController to display a popover that doesn\'t take up the whole screen. I\'ve followed many different tutor

6条回答
  •  难免孤独
    2020-12-24 12:53

    In iPhone, you should add the following in order to present a popover.

    func adaptivePresentationStyleForPresentationController(controller: UIPresentationController!) -> UIModalPresentationStyle {
        // Return no adaptive presentation style, use default presentation behaviour
        return .None
    }
    

提交回复
热议问题