iOSToolButton.NewPlain

From Xojo Documentation

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

iOSToolButton.NewPlain(title As Text) As iOSToolButton

Supported on Mobile (iOS).

Creates a simple plain button with the specified title.


Shared Method

iOSToolButton.NewPlain(image As iOSImage) As iOSToolButton

Supported on Mobile (iOS).

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