以下のようなイメージで、didSelectRowAtが呼ばれた時に、その選択されたcellの操作をしたいです。
swift
1func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 2let cell = TableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! TableViewCell 3cell.label.text = "changed!"
didSelectRowAtのタイミングで表示しているデータの配列に変更を加えて、tableView.reloadData()するしかないですか??
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/02 10:31