Hi I'm working on an iOS app that requires finding the z value of the accelerometer and then deriving it twice of find the "Jounce" value. Heres what I have so far:
In
-(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
I get the "z" value of acceleration and assign it to a variable:
float currentAccc = acceleration.z;
After this I don't know how to differentiate twice. How do I differentiate in Obj-C?
Thanks