gpt4 book ai didi

iOS 7.1 UIModalPresentationCustom 警告消息

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:22:10 25 4
gpt4 key购买 nike

自从我迁移到 iOS 7.1 后,我不断收到针对我的每个自定义过渡的警告消息。如何摆脱这个:

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

最佳答案

我遇到了同样的问题。我必须在呈现 Controller 中保留转换委托(delegate),因为当我从呈现的 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 警告消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22402965/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com