ios - Swift UIWebView 并不总是有效

标签 ios swift xcode uiwebview

我目前使用的是 Xcode 8.3.3,如果我使用的是 UIWebView,我会收到此错误,您可以在下方查看,然后在某些项目中或有时 WebView 无法正常工作在其他情况下确实如此。 我已经用一个空项目对其进行了测试,是的,是 UIWebView 导致了这些问题。

objc[11182]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11df63cc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11dd7a6f0). One of the two will be used. Which one is undefined.

提前致谢:)

编辑:同样使用 WKWebView 也没有改变任何东西。仍然遇到同样的问题。

最佳答案

请尝试使用 WKWebView 而不是 UIWebView。这个对我有用。 希望这会帮助你。 Click here for more

关于ios - Swift UIWebView 并不总是有效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45610726/

相关文章:

ios - SKTransition crossFadeWithDuration 不再有效

javascript - 无法获取 touchstart 事件的属性?

ios - 适用于 iOS 的 Dropbox 集成

ios - 自定义容器 Controller : transitionFromViewController: View not properly layed-out before animation

swift - 防止 View 在 NavigationView 中弹出

swift - 使用 Firebase 事务 block Swift

swift - 使用泛型将额外的 props 注入(inject)到 View 模型中

ios - 有没有办法从 Interface Builder 中控制 leftViewMode (UITextFieldViewMode) 和 leftView?

ios - 访问笔记应用程序数据

ios - NSDateFormatter 日期从字符串 : returns nil