UIViewControllerTransitioningDelegate_Extensions 类

定义

接口的 IUIViewControllerTransitioningDelegate 扩展方法,以支持协议中的所有方法 UIViewControllerTransitioningDelegate

public static class UIViewControllerTransitioningDelegate_Extensions
type UIViewControllerTransitioningDelegate_Extensions = class
继承
UIViewControllerTransitioningDelegate_Extensions

注解

的扩展方法 IUIViewControllerTransitioningDelegate 允许开发人员将 接口的实例视为具有原始 UIViewControllerTransitioningDelegate 协议的所有可选方法。 由于 接口仅包含所需成员,因此这些扩展方法允许开发人员调用协议的可选成员。

方法

GetAnimationControllerForDismissedController(IUIViewControllerTransitioningDelegate, UIViewController)

调用消除动画时,可以重写此方法以提供自定义 UIViewControllerAnimatedTransitioning。

GetAnimationControllerForPresentedController(IUIViewControllerTransitioningDelegate, UIViewController, UIViewController, UIViewController)

返回呈现 presentedpresenting使用的动画控制器。

GetInteractionControllerForDismissal(IUIViewControllerTransitioningDelegate, IUIViewControllerAnimatedTransitioning)

当关闭控制器并需要交互时,可以重写此方法以提供自定义 UIViewControllerInteractiveTransitioning.|调用消除交互并需要交互动画时,t

GetInteractionControllerForPresentation(IUIViewControllerTransitioningDelegate, IUIViewControllerAnimatedTransitioning)

当出现控制器并需要交互时,可以重写此方法以提供自定义 UIViewControllerInteractiveTransitioning。

GetPresentationControllerForPresentedViewController(IUIViewControllerTransitioningDelegate, UIViewController, UIViewController, UIViewController)

返回呈现 时presentingpresented使用的演示控制器。

适用于