iOSToolButton.NewSystemItem

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Shared Method

iOSToolButton.NewSystemItem(type As Types) As iOSToolButton

Supported on Mobile (iOS).

Creates a button using a built-in system item icon.

Sample Code

This code in the Open event handler of a view places an Add button in the left Navigation Bar:

// Create the button
Var button As iOSToolButton
button = iOSToolButton.NewSystemItem(iOSToolButton.Types.SystemAdd)

// Add it to the view
LeftNavigationToolbar.Add(button)