<UITableViewDataSource> tableView(_:moveRowAt:to:)

dlsl7380·2021년 7월 30일
0

Instance method

목록 보기
15/19

tableView(_:moveRowAt:to:)

Tells the data source to move a row at a specific location in the table view to another location.

Declaration

optional func tableView(_ tableView: UITableView, 
              moveRowAt sourceIndexPath: IndexPath, 
                     to destinationIndexPath: IndexPath)

Parameters

tableView

The table-view object requesting this action.

fromIndexPath

An index path locating the row to be moved in tableView.
셀이 원래있던 인덱스패스

toIndexPath

An index path locating the row in tableView that is the destination of the move.
옮긴 위치의 인덱스패스

Discussion

The UITableView object sends this message to the data source when the user presses the reorder control in fromRow.

0개의 댓글

관련 채용 정보