//
|
// 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
|