Skip to content

Xojo iOS Toolbar Changes

In iOS, a view can contain two separate toolbar areas: a Navigation Bar, which displays at the top of the view, or a toolbar which displays at the bottom of the view. A navigation bar can also display within a view that doesn’t extend across the screen, such as one pane of a split view on an iPad.

Previously you had to add your toolbar buttons strictly from code. But starting with Xojo 2016 Release 2, you can now simply drag and drop your toolbar buttons onto the Layout Editor for the view.

To add a Tool Button to the Navigation Bar, drag a Tool Button from the Library to the the top part of the View. If the Navigation Bar is not visible, then the NavigationBarVisible property will automatically be turned ON. Tool Buttons can be added to the left or right side of the Navigation Bar.

To add a Tool Button to the Tool Bar, drag a Tool Button from the Library to the bottom part of the View. That’s pretty easy!

To learn more about Toolbars, be sure to read the iOS Toolbars topic in the User Guide.