I want to determine shake gesture along with the direction in which device is shacked like left right up or down. I am using
-(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
method
but i am not getting the direction of shake from this method. Can anyone suggest any algorithm or something through which it is possible to detect.
Thanks