Edit

Bagikan melalui


UITableViewDelegate.TitleForDeleteConfirmation Method

Definition

Sets the text of the Delete button for the specified row.

[Foundation.Export("tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual string TitleForDeleteConfirmation (UIKit.UITableView tableView, Foundation.NSIndexPath indexPath);
abstract member TitleForDeleteConfirmation : UIKit.UITableView * Foundation.NSIndexPath -> string
override this.TitleForDeleteConfirmation : UIKit.UITableView * Foundation.NSIndexPath -> string

Parameters

tableView
UITableView

Table view being edited.

indexPath
NSIndexPath

Location of the row that may be deleted.

Returns

Text to be used as the title for the Delete button.

Attributes

Remarks

The Delete button appears when the user swipes-to-delete or taps the red circle accessory while the table view is in edit mode.

Use this method to customize the button title, for example in the Mail app the Delete button title contains the number of emails that will be deleted in a message thread.

Applies to