Popover in swift 3 on iphone ios

前端 未结 1 541
情书的邮戳
情书的邮戳 2020-11-30 05:49

I am trying to make a popover menu with the following code:

import UIKit

class BeobachtungViewController: UIViewController, UIPopoverPresentationControllerD         


        
相关标签:
1条回答
  • 2020-11-30 06:08

    Change your delegate method to:

    func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle {
        // return UIModalPresentationStyle.FullScreen
        return UIModalPresentationStyle.none
    }
    
    0 讨论(0)
提交回复
热议问题