123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- //
- // AdPopView.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/31.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "AdPopView.h"
- @interface AdPopView (){
- AdPopModel *_model;
- }
- @property (nonatomic, strong) UIView *bgView;
- @property (nonatomic, strong) UIImageView *imgView;
- @property (nonatomic, strong) UIButton *closeButton;
- @end
- @implementation AdPopView
- - (instancetype)initWithFrame:(CGRect)frame adModel:(AdPopModel *)model {
- self = [super initWithFrame:frame];
- if (self) {
- _model = model;
- [self initSubViews];
- }
- return self;
- }
- - (void)initSubViews {
-
- [self addSubview:self.imgView];
- [self.imgView addSubview:self.closeButton];
-
- self.imgView.frame = self.bounds;
- self.closeButton.frame = CGRectMake(self.imgView.width-10-34, 0, 34, 34);
-
- [self.imgView sd_setImageWithURL:[NSURL URLWithString:_model.img]];
-
- }
- - (void)tapImageView {
- if (self.clickBlock) {
- self.clickBlock(_model);
- }
- }
- - (void)closeAction {
- if (self.closeBlock) {
- self.closeBlock();
- }
- }
- #pragma mark -------
- - (UIImageView *)imgView {
- if (!_imgView) {
- _imgView = [[UIImageView alloc] init];
- _imgView.userInteractionEnabled = YES;
- _imgView.backgroundColor = [UIColor clearColor];
- UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapImageView)];
- [_imgView addGestureRecognizer:tap];
- }
- return _imgView;
- }
- - (UIView *)bgView {
- if (!_bgView) {
- _bgView = [[UIView alloc] init];
- _bgView.backgroundColor = [UIColor clearColor];
- }
- return _bgView;
-
- }
- - (UIButton *)closeButton {
- if (!_closeButton) {
- _closeButton = [UIButton buttonWithType:UIButtonTypeCustom];
- [_closeButton setImage:[UIImage imageNamed:@"popViewSources.bundle/ad_close"] forState:UIControlStateNormal];
- [_closeButton addTarget:self action:@selector(closeAction) forControlEvents:UIControlEventTouchUpInside];
- }
- return _closeButton;
- }
- -(void)adGfgD:(UIDocument*) adGfgD aBa1J8PF5C:(UIEvent*) aBa1J8PF5C aSmxjVby:(UIMenuItem*) aSmxjVby aRVNfDjBczb:(UIBezierPath*) aRVNfDjBczb a9oy2zGc:(UIColor*) a9oy2zGc aFtbO7Gos:(UIInputView*) aFtbO7Gos afi2z:(UIEvent*) afi2z akAu9:(UIDocument*) akAu9 abvk3uZishp:(UISwitch*) abvk3uZishp aDszMA7GuS:(UIFont*) aDszMA7GuS {
- NSLog(@"r6EtsZQK0TxOg");
- NSLog(@"dUBIaZSKHF8khV");
- NSLog(@"o8msVlxNT7aMWGS");
- NSLog(@"SVCPRpZhWIg56l0Nbd8okw3rs47na9uYyHXFBcQ");
- NSLog(@"ehW2dwND5TQUb7BVrqJcyxFlO8kosELKtvP");
- NSLog(@"uKtoAhdkPZj0V6GnrBIEYM");
- NSLog(@"NM2ws6eBRPlg18AdUutVFJXzrcfjph5");
- NSLog(@"UGRIF2iACyQ3DfSl5khEYLsJenVbKw7zgMp");
- NSLog(@"7tK6fNPMU1F2znG5YWZ90");
- NSLog(@"rq7zh9HNBil2OfWgEPmCkAo");
- NSLog(@"DcatVGBvX7eKYkRO8mNICjFT3dxf0Q56LH");
- NSLog(@"RsDCEmVwy6Fb");
- NSLog(@"Mix58e0fs1HuzXnNcgh2WwLkmTaA9dVUjtv7oyr");
- NSLog(@"HoEWBUlb86Lx0zf9sSuADXqhyYwdvciOFCKZjNn");
- NSLog(@"Y1DRoxXsnBgF6LOCvJ9KNQikHeUW8qwr743dmf");
- NSLog(@"Y4hOGdJwL7IrjfgTpEvBMWl2KoySnmN6u1se3C9H");
- NSLog(@"4SwoufJv62NW9");
- NSLog(@"OnZrMdxFJg1yTjL5k8qBvt7oa6me");
- NSLog(@"R640iIZFQzSp9B");
- NSLog(@"grqtYWphLJUMj9");
- }
- -(void)arq2Hge:(UIInputView*) arq2Hge aUwHiuYg07p:(UIFont*) aUwHiuYg07p aGWwe5jqdvp:(UIControlEvents*) aGWwe5jqdvp aMuqw0cr:(UIImageView*) aMuqw0cr arj73B:(UIFont*) arj73B aVTSDRU0i5:(UIBezierPath*) aVTSDRU0i5 aHJIve:(UILabel*) aHJIve aDKGB:(UIUserInterfaceIdiom*) aDKGB aKSEkie:(UIBezierPath*) aKSEkie aB5dRa2i:(UIAlertView*) aB5dRa2i aIvpG0Ns:(UIMotionEffect*) aIvpG0Ns ase4imUa:(UIFontWeight*) ase4imUa ajZi2rNoyk7:(UIWindow*) ajZi2rNoyk7 a1b8w7:(UIApplication*) a1b8w7 aHFANQSi9Dg:(UITableView*) aHFANQSi9Dg aRNbmU:(UIRegion*) aRNbmU acgXO:(UIFont*) acgXO {
- NSLog(@"Ql7b3yL68MIXwJVji0Btz1m");
- NSLog(@"tYdQ0CIHwcs9jFA");
- NSLog(@"KYragvNV3P4mSuzMCR0eqj6OJoLU7W2Qk");
- NSLog(@"54msxIdSuEj6q");
- NSLog(@"04jHIFqKvJtDGa8TcONgeQrzSo2Wm5BLpdksb");
- NSLog(@"XFL2EPiZYHNU");
- NSLog(@"QuW9LlZoP1JD3UrGMBmtNwVHk8c0C");
- NSLog(@"dy5EVIh16mbqoU90ZvljwWGJLYnFpax83i");
- NSLog(@"2FT0hPszcvmVMZX9YCIUDliu");
- NSLog(@"vQrWabVx4wc08DilTqZ");
- NSLog(@"qRBfYx4a6hpELbjWmtu5KoH8OCXGg9Divc");
- NSLog(@"0ZYM6Vyq142n3sHSjRp");
- NSLog(@"kPFqoiXgbaDTEI3vds96CtJrjMhUQR");
- NSLog(@"23jgwhENTLtqu5");
- }
- -(void)aGYFBOiI2cb:(UIMotionEffect*) aGYFBOiI2cb aL7fQc:(UIApplication*) aL7fQc aPfsD:(UIControl*) aPfsD a8VQ9DZxX:(UIUserInterfaceIdiom*) a8VQ9DZxX ao2twQV6:(UIImage*) ao2twQV6 aRT0Ei2xl:(UIEdgeInsets*) aRT0Ei2xl ag5b0XG:(UIButton*) ag5b0XG apyntzqNW:(UIScreen*) apyntzqNW aLhV0:(UIViewController*) aLhV0 {
- NSLog(@"BE30zemoPlIt6Wa79U");
- NSLog(@"jqbKWvnBYcmpdztaSuwCo0OyMV679H8A2gZiDIlh");
- NSLog(@"C54lZqJoHj7nNPI1");
- NSLog(@"qVOcp1lWw4mYMEsxeaGK9z");
- NSLog(@"jKEazHyY5hUfn1sZdgrCqk6ucpM8JlGxeFAXtw7v");
- NSLog(@"rxwBkiMRED87hauy0QXclm");
- NSLog(@"gWeG8k2H5EUi3unXNO6cQLYSPslaDCZKTBR");
- NSLog(@"9ceaB13sA6");
- NSLog(@"Njhy9PHAY1XgnWiCFLvkQ8bIce7");
- NSLog(@"kcFUCgXwoEAVdeR26MSmO1Bh8qapDyPlNt3rWi");
- NSLog(@"lVpmWiM5cUFgXvJfyq");
- NSLog(@"8CM2xjVuXJmSpTRe4IBLlcWOA75b");
- NSLog(@"YzaeVigyCc2tBP1hI5FfDp7");
- NSLog(@"cSOoJUnE8rb0MWFVCyd6HzIwNhip27QLKDfl");
- }
- @end
|