Skip to content

TTMSFMXNativeUIActionSheet

Usage

Use the UIActionSheet class to present the user with a set of alternatives for how to proceed with a given task.

Published Properties

Property name Description
Buttons A string list of additional buttons.
CancelButtonTitle The title of the cancel button.
DestructiveButtonTitle The title of the destructive button.
Style The style of the ActionSheet.

Methods

Method name Description
ShowFromTabBar Shows the ActionSheet from a tabbar.
ShowFromControl Shows the ActionSheet from a control.
ShowFromButton Shows the ActionSheet from a toolbar button.
ShowFromRect Shows the ActionSheet in a specific rectangle relative to the root view.
ShowFromRectInView Shows the ActionSheet in a specific rectangle relative to the view passed as a parameter.
ShowFromToolBar Shows the ActionSheet from a toolbar.
Note: All ShowFrom* methods have the same result on an iphone application. The ActionSheet is presented from the bottom of the screen.

Public functions

Property name Description
CancelButtonIndex: Integer; Returns the index linked to the CancelButtonTitle.
DestructiveButtonIndex: Integer; Returns the index linked to the DestructiveButtonTitle.
FirstOtherButtonIndex: Integer; Returns the first index of the additional Button titles added to the Buttons string list property.
NumberOfButtons: Integer; Returns the number of buttons displayed in an ActionSheet.
ButtonTitleAtIndex(AIndex: Integer); Returns the title of a specific button.

Public Properties

Property name Description
ActionSheet Returns a reference to the native iOS UIView.

Published Events

Property name Description
OnCancel Event triggered when cancelling the ActionSheet.
OnClickedAtButtonIndex Event triggered when a specific button index is clicked.
OnDidDismissWithButtonIndex Event triggered when the ActionSheet is dismissed with a specific button index.
OnDidPresent Event called when the ActionSheet is presented.
OnWillDismissWithButtonIndex Event called when the ActionSheet will be dismissed with a specific button index.
OnWillPresent Event called when the ActionSheet will be presented.