---
title: setNeedsUpdateOfPrefersInterfaceOrientationLocked()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiviewcontroller/setneedsupdateofprefersinterfaceorientationlocked()
---

# setNeedsUpdateOfPrefersInterfaceOrientationLocked()

Indicates that the view controller changed the interface orientation lock preference.

## Declaration

```swift
func setNeedsUpdateOfPrefersInterfaceOrientationLocked()
```

## See Also

### Configuring the view rotation settings

- [supportedInterfaceOrientations](uikit/uiviewcontroller/supportedinterfaceorientations.md)
- [preferredInterfaceOrientationForPresentation](uikit/uiviewcontroller/preferredinterfaceorientationforpresentation.md)
- [setNeedsUpdateOfSupportedInterfaceOrientations()](uikit/uiviewcontroller/setneedsupdateofsupportedinterfaceorientations().md)
- [prefersInterfaceOrientationLocked](uikit/uiviewcontroller/prefersinterfaceorientationlocked.md)
- [childForInterfaceOrientationLock](uikit/uiviewcontroller/childforinterfaceorientationlock.md)
