質問編集履歴
4
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,6 +106,24 @@
|
|
106
106
|
|
107
107
|
|
108
108
|
|
109
|
+
|
110
|
+
|
111
|
+
//テーブルをリロードする箇所
|
112
|
+
|
113
|
+
private var apisearchend:String!{
|
114
|
+
|
115
|
+
didSet{
|
116
|
+
|
117
|
+
DispatchQueue.global().async {
|
118
|
+
|
119
|
+
DispatchQueue.main.async {
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
self.searchitem.reloadData()
|
124
|
+
|
125
|
+
|
126
|
+
|
109
127
|
```
|
110
128
|
|
111
129
|
|
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,7 +102,7 @@
|
|
102
102
|
|
103
103
|
|
104
104
|
|
105
|
-
cell.start.rating = Double(self.
|
105
|
+
cell.start.rating = Double(self.str[indexPath.row]) ?? 0 <-- ここ 慣性スクロール中にindexPathがnilになる
|
106
106
|
|
107
107
|
|
108
108
|
|
2
落ちる箇所のコードを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -82,6 +82,30 @@
|
|
82
82
|
|
83
83
|
}
|
84
84
|
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
// 落ちる箇所のコード
|
90
|
+
|
91
|
+
func tableView(_ table: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
if let cell = table.dequeueReusableCell(withIdentifier: "CustomCell") as? TableViewCell3 {
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
cell.contentView.backgroundColor = UIColor(red: 248/255, green: 235/255, blue: 241/255, alpha: 100/100)
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
cell.start.rating = Double(self.mycosume_star[indexPath.row]) ?? 0 <-- ここ 慣性スクロール中にindexPathがnilになる
|
106
|
+
|
107
|
+
|
108
|
+
|
85
109
|
```
|
86
110
|
|
87
111
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,17 +50,17 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
-
self.str = [String]()
|
53
|
+
self.str = [String]()
|
54
54
|
|
55
|
-
self.str2 = [String]()
|
55
|
+
self.str2 = [String]()
|
56
56
|
|
57
|
-
self.str3 = [String]()
|
57
|
+
self.str3 = [String]()
|
58
58
|
|
59
|
-
self.str4 = [String]()
|
59
|
+
self.str4 = [String]()
|
60
60
|
|
61
|
-
self.str5 = [String]()
|
61
|
+
self.str5 = [String]()
|
62
62
|
|
63
|
-
self.str6 = [Int]()
|
63
|
+
self.str6 = [Int]()
|
64
64
|
|
65
65
|
self.pageng = 0
|
66
66
|
|