1

我想在我的 tableview 中为 collectionView 创建部分,像应用商店 以水平滚动显示单元格 collectionView 的一部分

        let width = UIScreen.main.bounds.width
    layout.itemSize = CGSize(width: width - 24 , height: HomeBundleTableViewCell.itemHeight )
    layout.sectionInset =   UIEdgeInsets(top: 0, left: 12, bottom: 0, right: 0)
    layout.minimumInteritemSpacing = 0

    layout.minimumLineSpacing = 0
    layout.scrollDirection = .horizontal

我的问题是当我向左滚动显示是图像并且图像显示不好当我滚动分页collectionView显示分页好时我该怎么办

4

0 回答 0