Skip to content

CollectionViewAdapter self initCellByReuseId string function

xu.jingyu edited this page Dec 24, 2019 · 5 revisions

简介

根据reuseId设置初始化cell的回调

  • @param a string reuseId:cell类型
  • @param b function function(table cell) ... end cell: 视图cell
    ⚠️ 当存在多种类型cell时,此方法与reuseId方法配合使用;注意:方法中获取cell中控件宽/高是不准确的

Clone this wiki locally