admin
2023-04-21 0b3a4aaf99ea251bc8e27b96115288f0988fcffe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
//  SearchADCell.m
//  BuWanVideo2.0
//
//  Created by 重庆迈尖科技有限公司 on 2021/8/11.
//  Copyright © 2021 com.yeshi.buwansheque.ios. All rights reserved.
//
 
#import "SearchADCell.h"
#import "AppDelegate.h"
 
@interface SearchADCell ()
 
@property (nonatomic, nullable, strong) UIView *adView;
@end
 
@implementation SearchADCell
 
 
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupViewConfig];
    }
    return self;
}
 
- (void)setupViewConfig {
    [self.contentView addSubview:self.adView];
    self.adView.sd_layout.leftSpaceToView(self, 10).topSpaceToView(self, 0).rightSpaceToView(self, 0).bottomSpaceToView(self, 0);
}
 
- (UIView *)adView {
    if (!_adView) {
        _adView = [[UIView alloc] init];
    
    }
    return _adView;
}
 
 
@end