http://developer.apple.com/iphone/library/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/MotionEvents/MotionEvents.html listing 4-9 and 4-10 i tried to run the code but with no success, i run into a problem with gyroHandler.
can someone post an example of a completed code, without much changing the sample listings? meaning, i'd like to see how the listing was meant to be used.
I assume there should be some declarations but i can't figure out what. declaring CMGyroHandler in .h file didn't work.
it's a similar question to http://stackoverflow.com/questions/3229311/cmmotionmanager-and-the-gyroscope-on-iphone-4. but there the sample code was changed, gyroHandler wasn't used and I'd like to use the button to start and stop the gyro, like in the exmaple.
thanks for your help!