Compartir a través de


UITableView.DeleteRows(NSIndexPath[], UITableViewRowAnimation) Método

Definición

Elimine las filas a las que se hace referencia en la atIndexPaths matriz. Opcionalmente, la eliminación se puede animar.

[Foundation.Export("deleteRowsAtIndexPaths:withRowAnimation:")]
public virtual void DeleteRows (Foundation.NSIndexPath[] atIndexPaths, UIKit.UITableViewRowAnimation withRowAnimation);
abstract member DeleteRows : Foundation.NSIndexPath[] * UIKit.UITableViewRowAnimation -> unit
override this.DeleteRows : Foundation.NSIndexPath[] * UIKit.UITableViewRowAnimation -> unit

Parámetros

atIndexPaths
NSIndexPath[]

Matriz de NSIndexPath objetos que identifican las filas que se van a eliminar.

withRowAnimation
UITableViewRowAnimation

Qué tipo de animación usar al eliminar las filas (por ejemplo, atenuar o deslizarse hacia abajo).

Atributos

Comentarios

Cuando se llama a este método dentro de un bloque de animación definido por BeginUpdates() y EndUpdates(), las inserciones de filas o secciones se aplazan hasta que se hayan procesado las eliminaciones. Esto sucede independientemente del orden de las llamadas al método de inserción y eliminación dentro del bloque de animación.

Se aplica a