jjzjj

transitioningDelegate

全部标签

ios - 在预设演示之前丢失对 transitioningDelegate 的引用

在Xcodebeta2和iOS10beta2之前,我有一个可用的自定义UIPresentationController。我没有更改任何代码,但演示文稿现在以标准模式演示文稿呈现。在UIPresentationController的Apple示例代码中有一条说明:Forpresentationswhichwilluseacustompresentationcontroller,itispossibleforthatpresentationcontrollertoalsobethetransitioningDelegate.Thisavoidsintroducinganotherobjec

ios - 不调用委托(delegate)方法 (transitioningDelegate)

我正在尝试在两个viewController之间实现自定义转换。(swift3.0)在我的两个viewController之间,我有一个UISegue,类型为show(animated=true)。所以我在我的第一个ViewController的扩展中设置了UIViewControllerTransitioningDelegate的委托(delegate)方法:extensionDocumentsViewController:UIViewControllerTransitioningDelegate{...}而且我还实现了协议(protocol)要求的方法:animationContr