質問編集履歴
4
あ
test
CHANGED
File without changes
|
test
CHANGED
@@ -82,6 +82,24 @@
|
|
82
82
|
|
83
83
|
```SearchRootVC
|
84
84
|
|
85
|
+
func setupTableView() {
|
86
|
+
|
87
|
+
searchBar.delegate = self
|
88
|
+
|
89
|
+
// 以下のregisterを削除すると...
|
90
|
+
|
91
|
+
tableView.register(RepositoryCell.self, forCellReuseIdentifier: Identifiers.RepositoryCell)
|
92
|
+
|
93
|
+
}
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
```SearchRootVC
|
100
|
+
|
101
|
+
// Extension
|
102
|
+
|
85
103
|
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
86
104
|
|
87
105
|
|
3
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
-
```
|
83
|
+
```SearchRootVC
|
84
84
|
|
85
85
|
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
86
86
|
|
@@ -104,7 +104,7 @@
|
|
104
104
|
|
105
105
|
|
106
106
|
|
107
|
-
```er
|
107
|
+
```debugArea
|
108
108
|
|
109
109
|
Could not cast value of type 'UITableViewCell' (0x10edf4990) to 'CodeCheck_Test_Yumemi.RepositoryCell' (0x109593f60).
|
110
110
|
|
@@ -116,7 +116,7 @@
|
|
116
116
|
|
117
117
|
|
118
118
|
|
119
|
-
```er
|
119
|
+
```debugArea
|
120
120
|
|
121
121
|
tableView UITableView 0x00007fba3e850e00
|
122
122
|
|
2
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -76,7 +76,59 @@
|
|
76
76
|
|
77
77
|
|
78
78
|
|
79
|
+
## エラーに関して、追記
|
79
80
|
|
81
|
+
|
82
|
+
|
83
|
+
```
|
84
|
+
|
85
|
+
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
// let cell: ~~~の行で、 Thread 1: signal SIGABRT が表示されます。
|
90
|
+
|
91
|
+
let cell: RepositoryCell = tableView.dequeueReusableCell(withIdentifier: Identifiers.RepositoryCell, for: indexPath) as! RepositoryCell // Thread 1: signal SIGABRT
|
92
|
+
|
93
|
+
let UserRepo = repo[indexPath.row]
|
94
|
+
|
95
|
+
cell.configureCell(UserRepo)
|
96
|
+
|
97
|
+
cell.tag = indexPath.row
|
98
|
+
|
99
|
+
return cell
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
```
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
```error
|
108
|
+
|
109
|
+
Could not cast value of type 'UITableViewCell' (0x10edf4990) to 'CodeCheck_Test_Yumemi.RepositoryCell' (0x109593f60).
|
110
|
+
|
111
|
+
2020-09-10 09:30:07.757485+0900 CodeCheck-Test-Yumemi[38810:2869670] Could not cast value of type 'UITableViewCell' (0x10edf4990) to 'CodeCheck_Test_Yumemi.RepositoryCell' (0x109593f60).
|
112
|
+
|
113
|
+
(lldb)
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
```error
|
120
|
+
|
121
|
+
tableView UITableView 0x00007fba3e850e00
|
122
|
+
|
123
|
+
indexPath IndexPath
|
124
|
+
|
125
|
+
self CodeCheck_Test_Yumemi.SearchRootVC 0x00007fba3fb08b10
|
126
|
+
|
127
|
+
cell CodeCheck_Test_Yumemi.RepositoryCell
|
128
|
+
|
129
|
+
UserRepo [String : Any]
|
130
|
+
|
131
|
+
```
|
80
132
|
|
81
133
|
|
82
134
|
|
1
a
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
detailTextLabelが表示されない【TableViewCell】
|
test
CHANGED
File without changes
|