i have implemented following method in my application.
- (void)accelerometer:(UIAccelerometer *)acel didAccelerate:(UIAcceleration *)aceler {
if (fabsf(aceler.x) > 1.5 || fabsf(aceler.y) > 1.5 || fabsf(aceler.z) > 1.5 || fabsf(aceler.x) < -1.5 || fabsf(aceler.y) < -1.5 || fabsf(aceler.z) < -1.5 )
{
self.navigationItem.rightBarButtonItem=nil;
[self showImage:nil];
}
}
=> I am eager to know " The range of aceler.x ".
i.e. what would be the maximum value of aceler.x / y / z
Same way the minimum ? ( I think, it should be zero )
Thanks in advance for helping me.