美文网首页
第三方record

第三方record

作者: 喵喵粉 | 来源:发表于2021-05-20 11:48 被阅读0次

OC

Swift

override public func prepare() {
        super.prepare()

        . . .

        columnHeights = (0 ..< numberOfSections).map { section in
            let columnCount = self.columnCount(forSection: section)
            let sectionColumnHeights = (0 ..< columnCount).map { CGFloat($0) }
            return sectionColumnHeights
        }
        
        这里补充下
        //section出现0列就return
        for subColumnHeight in columnHeights {
            if subColumnHeight.count == 0 {
                return
            }
        }
        . . .

相关文章

网友评论

      本文标题:第三方record

      本文链接:https://www.haomeiwen.com/subject/qdcrlltx.html