presentationController

optional public func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController?

  • 参数解释

    • presented:即将展示的视图控制器
    • presenting:展示presented视图控制器的视图控制器
    • source:调用方法present(_:animated:completion:)的视图控制器
  • 注:

    • presenting和source不一定是同一个视图控制器

你可能感兴趣的:(presentationController)