<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UINavigationBarDelegate/navigationBarNSToolbarSection(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UINavigationBarDelegate(im)navigationBarNSToolbarSection:"
  },
  "title" : "navigationBarNSToolbarSection(_:)"
}
-->

# navigationBarNSToolbarSection(_:)

Asks the delegate which section of the toolbar to host the navigation bar in.

```
optional func navigationBarNSToolbarSection(_ navigationBar: UINavigationBar) -> UINavigationBar.NSToolbarSection
```

## Parameters

`navigationBar`

The navigation bar to host in an <doc://com.apple.documentation/documentation/AppKit/NSToolbar>.

## Return Value

An <doc://com.apple.documentation/documentation/AppKit/NSToolbar> section that determines which section to place the navigation bar in, and how to present the navigation bar in that section. Return [`UINavigationBar.NSToolbarSection.none`](/documentation/UIKit/UINavigationBar/NSToolbarSection/none) to disable <doc://com.apple.documentation/documentation/AppKit/NSToolbar> hosting, which is equivalent to setting [`preferredBehavioralStyle`](/documentation/UIKit/UINavigationBar/preferredBehavioralStyle) to [`UIBehavioralStyle.pad`](/documentation/UIKit/UIBehavioralStyle/pad).

## Discussion

The system calls this method to determine how to render your [`UINavigationBar`](/documentation/UIKit/UINavigationBar) when you build your app with Mac Catalyst.

---

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)