¡@

Home 

2014/10/15 ¤U¤È 10:03:29

iphone Programming Glossary: accelerationonyaxis

How can I use NSTimer with this simple while loop?

http://stackoverflow.com/questions/11728570/how-can-i-use-nstimer-with-this-simple-while-loop

NSTimer class but I couldn't make sense of how exactly I am to use this object in my case e.g. void play ...... ... if accelerationOnYaxis 0 accelerationOnYaxis 0.9 startTimer while accelerationOnYaxis 0 accelerationOnYaxis 0.9 if checkTimer 300msec printOut_AccelerationStayedBetweenThoseTwoValuesForAtLeast300msecs.. make sense of how exactly I am to use this object in my case e.g. void play ...... ... if accelerationOnYaxis 0 accelerationOnYaxis 0.9 startTimer while accelerationOnYaxis 0 accelerationOnYaxis 0.9 if checkTimer 300msec printOut_AccelerationStayedBetweenThoseTwoValuesForAtLeast300msecs.. this object in my case e.g. void play ...... ... if accelerationOnYaxis 0 accelerationOnYaxis 0.9 startTimer while accelerationOnYaxis 0 accelerationOnYaxis 0.9 if checkTimer 300msec printOut_AccelerationStayedBetweenThoseTwoValuesForAtLeast300msecs break_Out_Of_This_Loop..