本文介绍了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:
推荐答案
我遇到了同样的问题。我必须在呈现控制器中保留转换委托,因为当我从提供的控制器解雇时它是零。
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警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!