UITableView.MoveRow(NSIndexPath, NSIndexPath) 方法

定义

将行从 fromIndexPath 移动到 toIndexPath

[Foundation.Export("moveRowAtIndexPath:toIndexPath:")]
public virtual void MoveRow (Foundation.NSIndexPath fromIndexPath, Foundation.NSIndexPath toIndexPath);
abstract member MoveRow : Foundation.NSIndexPath * Foundation.NSIndexPath -> unit
override this.MoveRow : Foundation.NSIndexPath * Foundation.NSIndexPath -> unit

参数

fromIndexPath
NSIndexPath

指示 NSIndexPath 原始行的 。

toIndexPath
NSIndexPath

所需位置。

属性

注解

与 或) 相反 InsertRows(NSIndexPath[], UITableViewRowAnimation)DeleteRows(NSIndexPath[], UITableViewRowAnimation) ,没有用于移动行数组 (的函数。 应用程序开发人员必须重复调用此函数。 如果在动画块中 BeginUpdates()-EndUpdates() 调用此函数,则所有行操作都将作为单个动画发生。

适用于