回答編集履歴
2
一部修正しました。
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
下記でいかがでしょうか?
|
1
|
+
下記でいかがでしょうか?ご質問の内容ですとコンパイルエラーになるので一部変更しています。
|
2
2
|
|
3
3
|
|
4
4
|
|
1
一部修正しました。
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class ViewController: UICollectionViewController, UICollectionViewDelegateFlowLayout {
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -30,7 +30,15 @@
|
|
30
30
|
|
31
31
|
//collectionView?.backgroundColor = .white
|
32
32
|
|
33
|
-
|
33
|
+
let layout: UICollectionViewFlowLayout = UICollectionViewFlowLayout()
|
34
|
+
|
35
|
+
layout.minimumInteritemSpacing = 0
|
36
|
+
|
37
|
+
layout.minimumLineSpacing = 0
|
38
|
+
|
39
|
+
collectionView?.collectionViewLayout = layout
|
40
|
+
|
41
|
+
|
34
42
|
|
35
43
|
collectionView?.register(HogeCell.self, forCellWithReuseIdentifier: "cellId")
|
36
44
|
|