0

我的控制器中有一个场景视图,我将它的委托设置为 self,但它的委托方法没有被调用。在调试时,我将委托设置为 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
}

这里 scenview 存在,但 scenview.delegate = 0x0。请帮忙

4

0 回答 0