what are the correct values for detecting the device upside down?
I have the following and it starts detecting when the user has titled the device on its back.
I use the following values
float xx = -[acceleration x];
float yy = [acceleration y];
float angle = atan2(yy, xx);
if(angle >= 0.75 && angle <= 2.25)
{
NSLog(@"Upside down");
}