// // RQADCell.m // jiaPei // // Created by 张嵘 on 2022/11/28. // Copyright © 2022 JCZ. All rights reserved. // 9065222084687421 #import "RQADCell.h" @interface RQADCell () @property (weak, nonatomic) IBOutlet UIView *adView; @property (nonatomic, readwrite, strong) NSArray *expressAdViews; @end @implementation RQADCell #pragma mark - PublicMethods + (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath { static NSString *ID = @"RQADCell"; [collectionView registerNib:[UINib nibWithNibName:ID bundle:nil] forCellWithReuseIdentifier:ID]; RQADCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath]; if (!cell) cell = [self rq_viewFromXib]; return cell; } - (void)awakeFromNib { [super awakeFromNib]; [RQ_AD_MODULE loadAdWithAdType:GromoreAdTypeNative customView:self.adView]; } @end