developer
2023-11-10 fd94d7149c22bca6e323de3e44d28a50d7bbf481
BuWanVideo2.0/SearchController.m
@@ -183,17 +183,18 @@
                                                               GDTNativeExpressAdView *> *)views
{
    GDTNativeExpressAdView *adView = (GDTNativeExpressAdView *)views[0];
    adView.controller = self;
    [adView render];
    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:3];
    UICollectionViewCell *cell = (UICollectionViewCell *)[self.collectionView cellForItemAtIndexPath:indexPath];
    if(cell!=nil){
    cell.sd_layout.leftSpaceToView(self, 10);
    [cell addSubview:adView];
    // 广告位 render 后刷新 tableView
    [self.collectionView reloadData];
}
}
- (void)nativeExpressAdFailToLoad:(GDTNativeExpressAd *)nativeExpressAd error:(NSError *)error{
    NSLog(@"%@",error);
}