How to dismiss SKScene?

后端 未结 6 1604
迷失自我
迷失自我 2020-12-09 17:30

When Im finished with my SKScene is there a way to dismiss the SKScene from within my SKScene class?

If not back in my Viewcontroller where I present my SKScene

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 18:15

    You can use:

     [yourSKView presentScene:nil];
    

    to remove the scene.

提交回复
热议问题