自从我移至 iOS 7.1 以来,我不断收到有关每个自定义过渡的警告消息。如何摆脱这种情况:

“UIModalPresentationCustom演示文稿样式只能与
动画师或无动画解雇。”

最佳答案

我有同样的问题。我不得不将过渡委托保留在呈现控制器中,因为当我从呈现控制器中解散时,它是零。

@property (strong, nonatomic) YourTransitioningDelegate *transitioningDelegate;

@synthesize transitioningDelegate;

transitioningDelegate = [[YourTransitioningDelegate alloc] init];

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

07-26 09:43