<!--
{
  "availability" : [
    "iOS: 27.1.0 -",
    "iPadOS: 27.1.0 -",
    "macCatalyst: 27.1.0 -",
    "tvOS: 27.1.0 -",
    "visionOS: 27.1.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIArrangementViewController/setViewController:forPlacement:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIArrangementViewController(im)setViewController:forPlacement:"
  },
  "title" : "setViewController:forPlacement:"
}
-->

# setViewController:forPlacement:

Sets the view controller in the arrangement for a specific placement.

```
- (void) setViewController:(UIViewController *) viewController forPlacement:(UIArrangementViewControllerViewPlacement) placement;
```

## Parameters

`viewController`

The view controller in the arrangement.

`placement`

The placement of the view controller in the arrangement.

---

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)