UITableViewDelegate
UITableView
UITableViewDelegate
trailingSwipeActionsConfigurationForRowAt
leadingSwipeActionsConfigurationForRowAt
UIContextualAction
UIContextualAction.Handler
こんにちは。hollymoto@anthrgrnwrld です。 TableViewのセルをスワイプした時にいくつもボタンが表示されるような動作の実装方法のメモです。 以下のような表示のやつです。 標準のメールアプリでも同じような動作をするので、よく見る動作です。
TableViewのSectionヘッダーとかフッターってありますよね。 こうゆうやつのことです(これはヘッダーです)。 これ、UITableViewDelegateを継承してるViewControllerで tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> Stri…