views:

64

answers:

1

Sir,

I'm making a pedometer application using the accelerometer feature of the 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?

Kindly suggest.

+1  A: 

Look into using callback functions. Here's an example: http://iphonedevelopertips.com/user-interface/accelerometer-101.html

echo