iOs Acceleration: Detect if Screen is facing up- or downwards

holding the iPhone straight in portrait orientation with the homebutton at the bottom and rotate it around x-axis, how I am supposed to get the rotation direction? Y-Acceleration makes no difference between forward/backward acceleration in that case.
thanks