Enumeration

UITableViewRowAnimation

The type of animation to use when rows are inserted or deleted.

Declaration

typedef enum UITableViewRowAnimation : NSInteger {
    ...
} UITableViewRowAnimation;

Overview

Topics

Constants

UITableViewRowAnimationFade

The inserted or deleted row or rows fade into or out of the table view.

UITableViewRowAnimationRight

The inserted row or rows slide in from the right; the deleted row or rows slide out to the right.

UITableViewRowAnimationLeft

The inserted row or rows slide in from the left; the deleted row or rows slide out to the left.

UITableViewRowAnimationTop

The inserted row or rows slide in from the top; the deleted row or rows slide out toward the top.

UITableViewRowAnimationBottom

The inserted row or rows slide in from the bottom; the deleted row or rows slide out toward the bottom.

UITableViewRowAnimationNone

The inserted or deleted rows use the default animations.

UITableViewRowAnimationMiddle

The table view attempts to keep the old and new cells centered in the space they did or will occupy. Available in iPhone 3.2.

UITableViewRowAnimationAutomatic

The table view chooses an appropriate animation style for you. (Introduced in iOS 5.0.)

See Also

Inserting, Deleting, and Moving Rows and Sections

- insertRowsAtIndexPaths:withRowAnimation:

Inserts rows in the table view at the locations identified by an array of index paths, with an option to animate the insertion.

- deleteRowsAtIndexPaths:withRowAnimation:

Deletes the rows specified by an array of index paths, with an option to animate the deletion.

- insertSections:withRowAnimation:

Inserts one or more sections in the table view, with an option to animate the insertion.

- deleteSections:withRowAnimation:

Deletes one or more sections in the table view, with an option to animate the deletion.

- moveRowAtIndexPath:toIndexPath:

Moves the row at a specified location to a destination location.

- moveSection:toSection:

Moves a section to a new location in the table view.