ios - Is it possible to delay iPhone from detecting motion until a view fades from the screen? -


i have crystal ball (single view) application need fix for. there uilabel, shows brief instructions, appears upon first launch of application. disable motion detection until user taps screen dismiss instructions. of now, while instructions displayed, user can shake device, displays prediction. there way disable motionbegan method until user dismisses instructions?

declare bool instance variable , use flag indicate if instructional view has been dismissed yet. then, add check inside motionbegan method see if should or not. this:

//.h bool instructionsdoneshowing;  //.m  //wherever instructions screen dismissed instructionsdoneshowing = true;  //inside motionbegan method if (instructionsdoneshowing) {      //do stuff here } 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -