次の方法で共有


UITableViewSource.TitleForDeleteConfirmation(UITableView, NSIndexPath) メソッド

定義

指定した行の [削除] ボタンのテキストを設定します。

[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

パラメーター

tableView
UITableView

編集中のテーブル ビュー。

indexPath
NSIndexPath

削除できる行の場所。

戻り値

[削除] ボタンのタイトルとして使用するテキスト。

属性

注釈

テーブル ビューが編集モードのときに、ユーザーがスワイプして削除するか、赤い円のアクセサリをタップすると、[削除] ボタンが表示されます。

このメソッドを使用して、ボタン のタイトルをカスタマイズします。たとえば、メール アプリの [削除] ボタンのタイトルには、メッセージ スレッドで削除されるメールの数が含まれます。

[UITableViewDelegate] で宣言されています

適用対象