Instance Property

generatesDeviceOrientationNotifications

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

Declaration

@property(nonatomic, readonly, getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications;

Discussion

If the value of this property is YES, the shared UIDevice object posts a UIDeviceOrientationDidChangeNotification notification when the device changes orientation. If the value is NO, it generates no orientation notifications. Device orientation notifications can only be generated between calls to the beginGeneratingDeviceOrientationNotifications and endGeneratingDeviceOrientationNotifications methods.

See Also

Tracking the Device Orientation

orientation

Returns the physical orientation of the device.

UIDeviceOrientation

The physical orientation of the device.

- beginGeneratingDeviceOrientationNotifications

Begins the generation of notifications of device orientation changes.

- endGeneratingDeviceOrientationNotifications

Ends the generation of notifications of device orientation changes.