设置var colayout = UICollectionViewFlowLayout()
colayout.sectionInset = UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8)
这样就控制了四边的距离了
设置var colayout = UICollectionViewFlowLayout()
colayout.sectionInset = UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8)
这样就控制了四边的距离了