Swift: how to disable user interaction while touch action is being carried out?

后端 未结 8 2435
执念已碎
执念已碎 2021-02-12 03:27

I\'m working with sprite kit and if the user touches the screen, the actions within

override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
            


        
8条回答
  •  野的像风
    2021-02-12 04:25

    just go to storyboard and uncheck this option in any object which u want to disable the interaction of the user

提交回复
热议问题