Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 处于引导访问模式的SafariViewController不工作_Swift_Sfsafariviewcontroller_Guided Access - Fatal编程技术网

Swift 处于引导访问模式的SafariViewController不工作

Swift 处于引导访问模式的SafariViewController不工作,swift,sfsafariviewcontroller,guided-access,Swift,Sfsafariviewcontroller,Guided Access,我正在使用SafariViewController打开一个网页。它很好用。但由于客户端要求,此应用程序需要处于引导访问模式。当我将应用程序置于引导访问模式时,网页不会显示,我在控制台中遇到了下面提到的错误 无法获取远程视图控制器,错误为: 错误域=_UIViewServiceInterfaceErrorDomain代码=0“(空)”用户信息={OriginalError=ErrorDomain=FBSOpenApplicationErrorDomain代码=1“(空)”} 下面是打开Safari

我正在使用SafariViewController打开一个网页。它很好用。但由于客户端要求,此应用程序需要处于引导访问模式。当我将应用程序置于引导访问模式时,网页不会显示,我在控制台中遇到了下面提到的错误

无法获取远程视图控制器,错误为: 错误域=_UIViewServiceInterfaceErrorDomain代码=0“(空)”用户信息={OriginalError=ErrorDomain=FBSOpenApplicationErrorDomain代码=1“(空)”}

下面是打开SafariViewController的代码

func openSafari()
    {

            let safariVC = SFSafariViewController(URL: NSURL(string: "https://apple.com")!)
            self.presentViewController(safariVC, animated: true, completion: nil)
            safariVC.delegate = self


    }

请给我一些关于这个问题的想法。

您尝试过使用普通web视图吗?普通UIwebview可以。我们计划在未来的版本中探索SafariViewController。您尝试过使用普通web视图吗?普通UIwebview可以。我们计划在未来的版本中探索SafariViewController