<!--
{
  "availability" : [
    "iOS: 3.2.0 - 9.0.0",
    "iPadOS: 3.2.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPopoverController/init(contentViewController:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPopoverController(im)initWithContentViewController:"
  },
  "title" : "init(contentViewController:)"
}
-->

# init(contentViewController:)

Returns an initialized popover controller object.

```
init(contentViewController viewController: UIViewController)
```

## Parameters

`viewController`

The view controller for managing the popover’s content. This parameter must not be `nil`.

## Return Value

An initialized popover controller object.

## Discussion

When initializing a popover controller, you must specify the view controller object whose content is to be displayed in the popover. You can change this view controller later by modifying the [`contentViewController`](/documentation/UIKit/UIPopoverController/contentViewController) property.

---

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)