How to use accelerometer for paint on a screen in iphone? [closed]

好久不见. 提交于 2019-12-04 06:12:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!