dequeueReusableCellWithReuseIden

2018-04-28  本文已影响0人  Happy195

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {

    UICollectionViewCell *gridcell = nil;

    if(indexPath.section == 0){

    AIPerResumePreviewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:AIPerResumePreviewCellID forIndexPath:indexPath];

    NSInteger iSection = indexPath.section;

    NSMutableArray *arr = self.dataArr[iSection];

    cell.model = arr[indexPath.row];

    gridcell = cell;

    }

    return gridcell;

}

上一篇下一篇

猜你喜欢

热点阅读