Type Property

UIDeviceOrientationDidChange

Posted when the orientation of the device changes.

Declaration

static let UIDeviceOrientationDidChange: NSNotification.Name

Discussion

You can obtain the new orientation by getting the value of the orientation property.

See Also

Notifications

static let UIDeviceProximityStateDidChange: NSNotification.Name

Posted when the state of the proximity sensor changes.