czl0325 / ZLCollectionView

为应对类似淘宝首页,京东首页,国美首页等复杂布局而写的Collectionview。基于UICollectionView实现,目前支持标签布局,列布局,百分比布局,定位布局,填充式布局,瀑布流布局等。支持纵向布局和横向布局,可以根据不同的section设置不同的布局,支持拖动cell,头部悬浮,设置section背景色和自定义section背景view,向自定义背景view传递自定义方法。功能强大,超过Android的recyclerview,实现了电影选座等高难度的布局。
MIT License
1.16k stars 166 forks source link

考虑写一遍swift吗? #29

Closed rgmyyw closed 4 years ago

rgmyyw commented 4 years ago

xcode 11.3.1 swift5.0

使用RxDataSources 貌似不需要实现UICollectionViewDataSource 和 方法, 貌似一片空白, 下面方法也没有调用.

    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewFlowLayout, typeOfLayout section: Int) -> ZLLayoutType {
        print("indexPath: \(FillLayout)")
        return FillLayout
    }
czl0325 commented 4 years ago

你有设置layout的delegate吗?这个不是collectionview的datasource。这个库是支持swift的。你用法是不是有错

rgmyyw commented 4 years ago

可以留个联系方式吗? 想请教您一些问题,拜托了

czl0325 commented 4 years ago

295183917