问题
I am new in iPhone development, I am developing an app in which I have to use accelerometer for painting on screen . Please help me out is this can be done-able if so help me.
回答1:
You are looking for the gyro mouse, 3 lines of code. Watch this video, the gyro mouse is presented at 37:00-38:25.
So long story short, you need the gyroscopes (CMRotationRate).
来源:https://stackoverflow.com/questions/13084192/how-to-use-accelerometer-for-paint-on-a-screen-in-iphone