iOSToolButton.NewPlain

From Xojo Documentation

Shared Method

iOSToolButton.NewPlain(title As Text) As iOSToolButton

Creates a simple plain button with the specified title.


Shared Method

iOSToolButton.NewPlain(image As iOSImage) As iOSToolButton

Creates a simple plain button with the specified image.

Parameters

Parameter Description
title The text value to display in the button.
image An Image to display in the button.

Notes

Refer to the Image property for image suggestions.

Sample Code

Add a simple button:

Var b As iOSToolButton
b = iOSToolButton.NewPlain("Invoices")
Self.Toolbar.Add(b) // Add to toolbar on view

Add a simple button with an image:

Var b As iOSToolButton
b = iOSToolButton.NewPlain(ButtonImage) // ButtonImage is an image in the project
Self.Toolbar.Add(b) // Add to toolbar on view