gpt4 book ai didi

ios - SFSafariViewController 的问题

转载 作者:可可西里 更新时间:2023-11-01 05:51:24 26 4
gpt4 key购买 nike

作为 iOS 9 ATS 更改的一部分,我正在更新一个应用程序以将 SFSafariViewController 用于第三方 http 网站。

当我初始化并呈现实例时,我得到的只是一个空白的白色 View 。没有导航栏,没有内容..什么都没有。这在设备 (iOS 9.1) 和模拟器 (iOS 9.1) 上都会发生。但是在设备上,大约一分钟后我收到以下调试器消息:

Failed to get remote view controller with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.uikit.viewservice.com.apple.SafariViewService was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo={NSDebugDescription=The connection to service named com.apple.uikit.viewservice.com.apple.SafariViewService was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.}

应用程序正确包含 SafariServices 框架。我创建了一个测试项目,看看我的 SDK 安装是否有问题,但该项目运行良好。

我已通过 Apple Developer Portal 请求支持,并在 Apple Developer Forums 上提出了这个问题。任何人都知道这是什么或如何解决它?

最佳答案

Apple Developer Technical Support 已回复我以下信息:

There is a bug in the toolbar class used by the Safari View Controller that causes it to continuously perform layout (essentially in an infinite loop) if it or any of its bar buttons have a background image applied via the appearance proxy.

As a workaround, you'll either need to remove the line of code or restrict the appearance customization to instances where the UIBarButtonItem is contained within your own view controller's (you may need to subclass UINavigationController so that you can target your subclass with [UIBarButtonItem appearanceWhenContainedIn:]).

关于ios - SFSafariViewController 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34015649/

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