2017-08-31 62 views
0

當我導航到包含ARSCNView視圖控制器空白屏幕而不是攝像機視圖,與所有其他UI元素可見部分(透明)當我導航到包含ARSCNView空白屏幕視圖控制器出現

這是我的導航到下一個ViewController

代碼讓

secondViewController = storyboard?.instantiateViewController(withIdentifier: "SecondViewController") as! SecondViewController 
self.present(secondViewController, animated: true, completion: nil) 

回答

0

由於ARSCNView使用相機,你必須添加在plist文件權限請求。添加「隱私 - 相機使用說明」以便能夠使用相機。

相關問題