Sir,
先生,
I'm making a pedometer application using the accelerometer feature of the iPhone.
我正在使用iPhone的加速度计功能制作计步器应用程序。
I just want to detect the steps while walking using some counter.
我只是想用一些计数器走路时检测步骤。
Should I use a loop to get the updated X,Y,Z coordinates?
我应该使用循环来获取更新的X,Y,Z坐标吗?
Kindly suggest.
请建议。
1 个解决方案
#1
2
Look into using callback functions. Here's an example: http://iosdevelopertips.com/user-interface/accelerometer-101.html
考虑使用回调函数。这是一个例子:http://iosdevelopertips.com/user-interface/accelerometer-101.html
#1
2
Look into using callback functions. Here's an example: http://iosdevelopertips.com/user-interface/accelerometer-101.html
考虑使用回调函数。这是一个例子:http://iosdevelopertips.com/user-interface/accelerometer-101.html