optional public func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController?
-
參數(shù)解釋
- presented:即將展示的視圖控制器
- presenting:展示presented視圖控制器的視圖控制器
- source:調(diào)用方法present(_:animated:completion:)的視圖控制器
-
注:
- presenting和source不一定是同一個視圖控制器