質問編集履歴
1
試したことの追加記入
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,13 +17,24 @@
|
|
17
17
|
|
18
18
|
### 該当のソースコード
|
19
19
|
|
20
|
-
```
|
20
|
+
```swift
|
21
|
-
|
21
|
+
//選択時の処理
|
22
|
+
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
23
|
+
//選択時の網掛けを削除する
|
24
|
+
tableView.deselectRow(at: indexPath, animated: true)
|
25
|
+
|
26
|
+
|
27
|
+
let view = RefrigeratedDetailViewController()
|
28
|
+
view.cellData = indexPath.row
|
29
|
+
|
30
|
+
|
31
|
+
changeViewPush(storyBoardName: "RefrigeratedDetail")
|
32
|
+
}
|
22
33
|
```
|
23
34
|
|
24
35
|
### 試したこと
|
25
36
|
|
26
|
-
|
37
|
+
上記に書いたコードのように受け取りたいviewをインスタンス化して、そのviewにある変数にindexPath.rowを代入したのですが、反映されていないのか、同じデータが表示されてしまします。
|
27
38
|
|
28
39
|
### 補足情報(FW/ツールのバージョンなど)
|
29
40
|
|