---
title: "tabBarControllerPreferredInterfaceOrientationForPresentation(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitabbarcontrollerdelegate/tabbarcontrollerpreferredinterfaceorientationforpresentation(_:)"
---

# tabBarControllerPreferredInterfaceOrientationForPresentation(_:)

Called to allow the delegate to provide the preferred orientation for presentation of the tab bar controller.

## Declaration

```swift
optional func tabBarControllerPreferredInterfaceOrientationForPresentation(_ tabBarController: UITabBarController) -> UIInterfaceOrientation
```

## Parameters

- `tabBarController`: The tab bar controller that is asking the delegate object for the preferred presentation orientation.

## Return Value

Return Value The preferred orientation for presenting the tab bar controller.

## See Also

### Related Documentation

- [preferredInterfaceOrientationForPresentation](uikit/uiviewcontroller/preferredinterfaceorientationforpresentation.md)

### Overriding view rotation settings

- [tabBarControllerSupportedInterfaceOrientations(_:)](uikit/uitabbarcontrollerdelegate/tabbarcontrollersupportedinterfaceorientations(_:).md)
