<!--
{
  "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/present(from:permittedArrowDirections:animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPopoverController(im)presentPopoverFromBarButtonItem:permittedArrowDirections:animated:"
  },
  "title" : "present(from:permittedArrowDirections:animated:)"
}
-->

# present(from:permittedArrowDirections:animated:)

Displays the popover and anchors it to the specified bar button item.

```
func present(from item: UIBarButtonItem, permittedArrowDirections arrowDirections: UIPopoverArrowDirection, animated: Bool)
```

## Parameters

`item`

The bar button item on which to anchor the popover.

`arrowDirections`

The arrow directions the popover is permitted to use. You can use this value to force the popover to be positioned on a specific side of the bar button item. However, it is generally better to specify [`any`](/documentation/UIKit/UIPopoverArrowDirection/any) and let the popover decide the best placement. You must not specify [`unknown`](/documentation/UIKit/UIPopoverArrowDirection/unknown) for this parameter.

`animated`

Specify <doc://com.apple.documentation/documentation/Swift/true> to animate the presentation of the popover or <doc://com.apple.documentation/documentation/Swift/false> to display it immediately.

## Discussion

When presenting the popover, this method adds the toolbar that owns the button to the popover’s list of passthrough views. Thus, taps in the toolbar result in the action methods of the corresponding toolbar items being called. If you want the popover to be dismissed when a different toolbar item is tapped, you must implement that behavior in your action handler methods.

---

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)