回答編集履歴

2

TestCollectionViewLayout

2017/08/02 08:32

投稿

fuzzball
fuzzball

スコア16731

test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
 
28
28
 
29
- prepare()内のループの前に、
29
+ TestCollectionViewLayout.prepare()内のループの前に、
30
30
 
31
31
 
32
32
 

1

removeAll\(\)

2017/08/02 08:32

投稿

fuzzball
fuzzball

スコア16731

test CHANGED
@@ -19,3 +19,25 @@
19
19
  参考URL
20
20
 
21
21
  [iOS 10 bug: UICollectionView received layout attributes for a cell with an index path that does not exist](https://stackoverflow.com/questions/39867325/ios-10-bug-uicollectionview-received-layout-attributes-for-a-cell-with-an-index)
22
+
23
+
24
+
25
+ 【追記】
26
+
27
+
28
+
29
+ prepare()内のループの前に、
30
+
31
+
32
+
33
+ ```swift
34
+
35
+ layoutData.removeAll()
36
+
37
+ ```
38
+
39
+
40
+
41
+ を追加して下さい。
42
+
43
+