質問編集履歴
1
試したことの追加記入
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,9 +36,31 @@
|
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
-
```
|
39
|
+
```swift
|
40
40
|
|
41
|
-
|
41
|
+
//選択時の処理
|
42
|
+
|
43
|
+
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
44
|
+
|
45
|
+
//選択時の網掛けを削除する
|
46
|
+
|
47
|
+
tableView.deselectRow(at: indexPath, animated: true)
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
let view = RefrigeratedDetailViewController()
|
54
|
+
|
55
|
+
view.cellData = indexPath.row
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
changeViewPush(storyBoardName: "RefrigeratedDetail")
|
62
|
+
|
63
|
+
}
|
42
64
|
|
43
65
|
```
|
44
66
|
|
@@ -48,7 +70,7 @@
|
|
48
70
|
|
49
71
|
|
50
72
|
|
51
|
-
|
73
|
+
上記に書いたコードのように受け取りたいviewをインスタンス化して、そのviewにある変数にindexPath.rowを代入したのですが、反映されていないのか、同じデータが表示されてしまします。
|
52
74
|
|
53
75
|
|
54
76
|
|