Commit e4917586 authored by Steven杜宇's avatar Steven杜宇

// 展示选择人

parent 7350296a
......@@ -94,8 +94,8 @@ class YHSelectApplicantGroupCell: UITableViewCell {
lazy var collectionView: UICollectionView = {
let layout = UICollectionViewFlowLayout()
layout.scrollDirection = .vertical
layout.minimumInteritemSpacing = 0
layout.minimumLineSpacing = 16
layout.minimumInteritemSpacing = 0.0
layout.minimumLineSpacing = 16.0
let collectView = UICollectionView(frame:.zero, collectionViewLayout: layout)
collectView.delegate = self
......@@ -265,7 +265,8 @@ extension YHSelectApplicantGroupCell: UICollectionViewDelegate, UICollectionView
// 返回每个单元格的大小
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
return CGSize(width: floorl(collectionView.width/3.0), height: 20)
let listWidth = KScreenWidth-(14.0+18.0+16.0)*2.0
return CGSize(width: floorl(listWidth/3.0), height: 20)
}
// 返回自定义单元格
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment