<UITableViewDelegate> tableView(_:leadingSwipeActionsConfigurationForRowAt:)

dlsl7380·2021년 7월 30일
0

Instance method

목록 보기
13/19

왼쪽에 스와이프 액션 추가

tableView(_:leadingSwipeActionsConfigurationForRowAt:)

Returns the swipe actions to display on the leading edge of the row.

Declaration

optional func tableView(_ tableView: UITableView, 
leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration?

Parameters

tableView

The table view containing the row.

indexPath

The index path of the row.

Return Value

The swipe actions to display next to the leading edge of the row. Return nil if you want the table to display the default set of actions.

Discussion

Use this method to return a set of actions to display when the user swipes the row. The actions you return are displayed on the leading edge of the row. For example, in a left-to-right language environment, they are displayed on the left side of the row when the user swipes from left to right.

0개의 댓글

관련 채용 정보