Instance Method

endGeneratingDeviceOrientationNotifications

Ends the generation of notifications of device orientation changes.

Declaration

- (void)endGeneratingDeviceOrientationNotifications;

Discussion

This method stops the posting of UIDeviceOrientationDidChangeNotification notifications and notifies the system that it can power down the accelerometer hardware if it is not in use elsewhere. You call this method after a previous call to the beginGeneratingDeviceOrientationNotifications method.

See Also

Tracking the Device Orientation

orientation

Returns the physical orientation of the device.

UIDeviceOrientation

The physical orientation of the device.

generatesDeviceOrientationNotifications

A Boolean value that indicates whether the receiver generates orientation notifications (YES) or not (NO).

- beginGeneratingDeviceOrientationNotifications

Begins the generation of notifications of device orientation changes.