Instance Method


Asks the delegate for the position of the specified bar in its new window.


optional func position(for bar: UIBarPositioning) -> UIBarPosition



The bar that was added to the window.

Return Value

The position of the bar.


If your interface has a custom bar with a delegate, that delegate can implement this method and use it to specify the position of the bar that has been added to a window.

Delegates for the UINavigationBar and UISearchBar classes return the value by default. The delegate of the UIToolbar class returns the value UIBarPosition.bottom by default.

See Also