<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISplitViewController/viewController(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISplitViewController(im)viewControllerForColumn:"
  },
  "title" : "viewController(for:)"
}
-->

# viewController(for:)

Returns the view controller associated with the specified column of the split view interface.

```
func viewController(for column: UISplitViewController.Column) -> UIViewController?
```

## Parameters

`column`

The corresponding column of the split view interface. See [`UISplitViewController.Column`](/documentation/UIKit/UISplitViewController/Column) for values.

## Return Value

The corresponding child view controller object.

## Discussion

This method doesn’t apply to classic split view controllers with a [`style`](/documentation/UIKit/UISplitViewController/style-swift.property) of [`UISplitViewController.Style.unspecified`](/documentation/UIKit/UISplitViewController/Style-swift.enum/unspecified). For a classic split view controller, instead use the [`viewControllers`](/documentation/UIKit/UISplitViewController/viewControllers) property to get the view controllers in the split view interface.

---

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)