ios - Touchesbegan method inactive from viewcontroller -


when adding uiimageview viewcontroller, want make touchesbeganmethod inactive till uiimage pressed.

now have set up, need know how can prevent gamescene noticing touches setting code (only) in viewcontroller.

anyone knows how?

gamescene.paused = true // pauses game, touchesbegan method still active! 

you set userinteractionenabled false on view want disable touches or check on begining in touches began this:

if gamescene.paused == true {     return } 

Comments

Popular posts from this blog

html - height not adding height to a empty div -

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -