---
title: childForInterfaceOrientationLock
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/childforinterfaceorientationlock
---

# childForInterfaceOrientationLock

A child view controller to query for the interface orientation lock preference.

## Declaration

```swift
var childForInterfaceOrientationLock: UIViewController? { get }
```

## Discussion

Discussion Override to return a child view controller or nil. If you return a view controller, the system uses that view controller’s preference for interface orientation lock. If you return nil, the system uses self to get the preference for interface orientation lock. Call setNeedsUpdateOfPrefersInterfaceOrientationLocked() if the child view controller that the system needs to query for the interface orientation lock preference changes.

## 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)
- [setNeedsUpdateOfPrefersInterfaceOrientationLocked()](uikit/uiviewcontroller/setneedsupdateofprefersinterfaceorientationlocked().md)
