gpt4 book ai didi

ios8 - 启动服务 : invalidationHandler called - iOS 8 share sheet

转载 作者:行者123 更新时间:2023-12-03 10:40:39 24 4
gpt4 key购买 nike

在我使用 SLComposeViewController 的时候在日志中看到此错误消息,尽管不一致。打开 Twitter 或 Facebook 共享表。我没有使用任何新的 iOS 8 API,只是在 iOS 8 上测试现有代码。我看到其他人遇到了这个问题,甚至在使用 Cocoa Touch SDK 中的其他模态视图 Controller 时看到了崩溃。

LaunchServices: invalidationHandler called


SLComposeViewController 是否有新的预防措施?和 UIActivityViewController在 iOS 8 中?还有什么要考虑的?

最佳答案

在展示事件 View Controller 后添加此代码:

if ([activityVC respondsToSelector:@selector(popoverPresentationController)])
{
// iOS 8+
UIPopoverPresentationController *presentationController = [activityVC popoverPresentationController];

presentationController.sourceView = sender; // if button or change to self.view.
}

关于ios8 - 启动服务 : invalidationHandler called - iOS 8 share sheet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25759380/

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