Difference between revisions of "iOSTableRowAction"
From Xojo Documentation
|Line 1:||Line 1:|
Revision as of 03:27, 4 November 2020
| This item was deprecated in version 2020r2.
Please use iOSMobileTableRowAction as a replacement.
| This class is supported on Mobile (iOS).
Use ＃If...＃Endif with the Target... constants to ensure you only use this class where it is supported.
New in 2016r2
An iOSTableRowAction represents a single action that a user can take when swiping horizontally on an iOSTable row. Multiple actions may be added. As of iOS 8 an action is presented as a button near the trailing edge of the row. This class is used in conjunction with the iOSTable.ActionsForRow event.
Row actions only work for tables that use iOSTableDataSourceEditing and where its RowIsEditable method returns True.
Var actions(1) As iOSTableRowAction
' Create the More button
actions(0) = New iOSTableRowAction(iOSTableRowAction.Styles.Normal, "More...", "More")
' Create the Delete button
actions(1) = New iOSTableRowAction(iOSTableRowAction.Styles.Destructive, "Delete", "Delete")
Event RowAction(section As Integer, row As Integer, actionTag As Auto)
// ... show more info
// ... delete something