即使我设置为自己,ARSCNView.delegate也是零

时间:2018-02-22 11:54:35

标签: ios swift arscnview

我在我的控制器中有一个sceneview,我将其委托设置为self,但是它的委托方法没有被调用。在调试时,我将委托设置为自己,但它不起作用。请帮忙。这是我的代码

override func viewDidLoad() {
    super.viewDidLoad()
    // Set the view's delegate
    sceneView.delegate = self
    // Show statistics such as fps and timing information
    sceneView.showsStatistics = true
    // Create a new scene
    let scene = SCNScene()
    // Set the scene to the view
    sceneView.scene = scene
}

这里有sceview,但是sceneview.delegate = 0x0。 请帮忙

0 个答案:

没有答案