<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDevice/endGeneratingDeviceOrientationNotifications()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDevice(im)endGeneratingDeviceOrientationNotifications"
  },
  "title" : "endGeneratingDeviceOrientationNotifications()"
}
-->

# endGeneratingDeviceOrientationNotifications()

Ends the generation of notifications of device orientation changes.

```
func endGeneratingDeviceOrientationNotifications()
```

## Discussion

This method stops the posting of [`orientationDidChangeNotification`](/documentation/UIKit/UIDevice/orientationDidChangeNotification) notifications and notifies the system that it can power down the accelerometer hardware if it isn’t in use elsewhere. You call this method after a previous call to the [`beginGeneratingDeviceOrientationNotifications()`](/documentation/UIKit/UIDevice/beginGeneratingDeviceOrientationNotifications()) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)