UIAccelerometer reference [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionCan anybody suggest to me some good applications that make us开发者_JS百科e of UIAccelerometer Class and some references too ?
BubbleLevel is a sample app that's nice and simple, yet demonstrates the UIAccelerometer. First source of reference for the class is here.
progmr suggests that you're looking for ideas for applications that can make use of the UIAccelerometer. BubbleLevel already hints at one major use of the accelerometer - that of knowing the orientation of the device.
The other major use is (obviously) tracking the acceleration of the phone, allowing for the interpretation of gestures, for instance: not just shaking, but gestures like you might use when playing a Wii game. This doesn't necessarily lend itself directly to knowing the velocity of the phone! (Integrating the acceleration gives you velocity + some constant factor unknowable without calibration.)
精彩评论