UITableViewSource.TitleForDeleteConfirmation(UITableView, NSIndexPath) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置指定行的“删除”按钮的文本。
[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] 中声明