A simple level app for iOS that illustrates how to perform calibration on the accelerometer