iOS 7.1 UIModalPresentationCustom警告消息 [英] iOS 7.1 UIModalPresentationCustom warning message

查看:72
本文介绍了iOS 7.1 UIModalPresentationCustom警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我转到 iOS 7.1 后,我不断收到每个自定义转换的警告消息。如何摆脱这个:

Since I moved to iOS 7.1 I keep getting the warning message for each one of my custom transitions. How to get rid of this:


UIModalPresentationCustom演示风格只能与
动画师一起使用或与非动画解雇一起使用。

"UIModalPresentationCustom presentation style can only be used with an animator or with unanimated dismissals."


推荐答案

我遇到了同样的问题。我必须在呈现控制器中保留转换委托,因为当我从提供的控制器解雇时它是零。

I had this same problem. I had to retain the transitioning delegate in the presenting controller because it was nil when I went to dismiss from the presented controller.

@property (strong, nonatomic) YourTransitioningDelegate *transitioningDelegate;

@synthesize transitioningDelegate;

transitioningDelegate = [[YourTransitioningDelegate alloc] init];

UIViewController *presentingController = [[UIViewController alloc] init];
presentingController.transitioningDelegate = transitioningDelegate;
[self presentViewController:presentingController];

这篇关于iOS 7.1 UIModalPresentationCustom警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆