有没有办法将AFrame webVR体验打包到iOS AppStore应用程序中?使用UIWebView或类似的?它将完全与“VR/纸板/加速计”一起工作,还是只在用户“手指触摸拖动3603D场景”环视时才能工作?
或者,是否存在各种不稳定的iOS/AppStore限制,使其不可能或不切实际?
发布于 2020-08-05 20:12:44
UIWebView已被弃用,您可以使用WKWebView执行此操作,如下所示:
webView = WKWebView(frame: .zero, configuration: WKWebViewConfiguration())
webView?.frame = containerView.bounds
webView?.autoresizingMask = [.flexibleWidth, .flexibleHeight]
webView?.scrollView.isScrollEnabled = true
webView?.configuration.requiresUserActionForMediaPlayback = false
webView?.configuration.allowsInlineMediaPlayback = true
webView?.configuration.preferences.javaScriptEnabled = true
webView?.configuration.preferences.javaScriptCanOpenWindowsAutomatically = true
webView?.navigationDelegate = self
webView?.uiDelegate = selfhttps://stackoverflow.com/questions/63248375
复制相似问题