let cellID : String = "ZZMoneyCollectionSectionTwoViewCell"
var cell : ZZMoneyCollectionSectionTwoViewCell? = collectionView.dequeueReusableCell(withReuseIdentifier: cellID, for: indexPath) as? ZZMoneyCollectionSectionTwoViewCell
if cell == nil {
cell = ZZMoneyCollectionSectionTwoViewCell.initWithCollectionViewCell(collectionView, indexPath as NSIndexPath, cellID)
}
if indexPath.row <= self.moneyDetailModel.convertible.count{
let model: ZZMoneyConvertibleModel = self.moneyDetailModel.convertible[indexPath.row]
cell?.update(model: model)
}
cell?.evaluteCellLeftPadding(row: indexPath.row)
return cell!
网友评论