次の方法で共有


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

定義

テーブル ビューがスワイプから削除の編集モードに入るときに呼び出されます。

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

パラメーター

tableView
UITableView

編集しようとしているテーブル ビュー。

indexPath
NSIndexPath

スワイプされた行の場所。

属性

注釈

も実装されていない限り CommitEditingStyle(UITableView, UITableViewCellEditingStyle, NSIndexPath) 、このメソッドは呼び出されません。

ユーザーが行をスワイプすると、テーブル ビューの Editing プロパティがになり true 、スワイプされた行 ( indexPathにある) に [削除] ボタンが表示されます。 このメソッドは、ユーザー インターフェイスを更新できるようにするために呼び出されます (たとえば、[キャンセル] ボタンを指定して編集モードを終了します)。

編集モード (削除操作後など) を終了すると、 DidEndEditing(UITableView, NSIndexPath) が呼び出されます。

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

適用対象