两折卖----返利app-----返利圈

AdPopView.m 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. //
  2. // AdPopView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/31.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "AdPopView.h"
  9. @interface AdPopView (){
  10. AdPopModel *_model;
  11. }
  12. @property (nonatomic, strong) UIView *bgView;
  13. @property (nonatomic, strong) UIImageView *imgView;
  14. @property (nonatomic, strong) UIButton *closeButton;
  15. @end
  16. @implementation AdPopView
  17. - (instancetype)initWithFrame:(CGRect)frame adModel:(AdPopModel *)model {
  18. self = [super initWithFrame:frame];
  19. if (self) {
  20. _model = model;
  21. [self initSubViews];
  22. }
  23. return self;
  24. }
  25. - (void)initSubViews {
  26. [self addSubview:self.imgView];
  27. [self.imgView addSubview:self.closeButton];
  28. self.imgView.frame = self.bounds;
  29. self.closeButton.frame = CGRectMake(self.imgView.width-10-34, 0, 34, 34);
  30. [self.imgView sd_setImageWithURL:[NSURL URLWithString:_model.img]];
  31. }
  32. - (void)tapImageView {
  33. if (self.clickBlock) {
  34. self.clickBlock(_model);
  35. }
  36. }
  37. - (void)closeAction {
  38. if (self.closeBlock) {
  39. self.closeBlock();
  40. }
  41. }
  42. #pragma mark -------
  43. - (UIImageView *)imgView {
  44. if (!_imgView) {
  45. _imgView = [[UIImageView alloc] init];
  46. _imgView.userInteractionEnabled = YES;
  47. _imgView.backgroundColor = [UIColor clearColor];
  48. UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapImageView)];
  49. [_imgView addGestureRecognizer:tap];
  50. }
  51. return _imgView;
  52. }
  53. - (UIView *)bgView {
  54. if (!_bgView) {
  55. _bgView = [[UIView alloc] init];
  56. _bgView.backgroundColor = [UIColor clearColor];
  57. }
  58. return _bgView;
  59. }
  60. - (UIButton *)closeButton {
  61. if (!_closeButton) {
  62. _closeButton = [UIButton buttonWithType:UIButtonTypeCustom];
  63. [_closeButton setImage:[UIImage imageNamed:@"popViewSources.bundle/ad_close"] forState:UIControlStateNormal];
  64. [_closeButton addTarget:self action:@selector(closeAction) forControlEvents:UIControlEventTouchUpInside];
  65. }
  66. return _closeButton;
  67. }
  68. -(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 {
  69. NSLog(@"r6EtsZQK0TxOg");
  70. NSLog(@"dUBIaZSKHF8khV");
  71. NSLog(@"o8msVlxNT7aMWGS");
  72. NSLog(@"SVCPRpZhWIg56l0Nbd8okw3rs47na9uYyHXFBcQ");
  73. NSLog(@"ehW2dwND5TQUb7BVrqJcyxFlO8kosELKtvP");
  74. NSLog(@"uKtoAhdkPZj0V6GnrBIEYM");
  75. NSLog(@"NM2ws6eBRPlg18AdUutVFJXzrcfjph5");
  76. NSLog(@"UGRIF2iACyQ3DfSl5khEYLsJenVbKw7zgMp");
  77. NSLog(@"7tK6fNPMU1F2znG5YWZ90");
  78. NSLog(@"rq7zh9HNBil2OfWgEPmCkAo");
  79. NSLog(@"DcatVGBvX7eKYkRO8mNICjFT3dxf0Q56LH");
  80. NSLog(@"RsDCEmVwy6Fb");
  81. NSLog(@"Mix58e0fs1HuzXnNcgh2WwLkmTaA9dVUjtv7oyr");
  82. NSLog(@"HoEWBUlb86Lx0zf9sSuADXqhyYwdvciOFCKZjNn");
  83. NSLog(@"Y1DRoxXsnBgF6LOCvJ9KNQikHeUW8qwr743dmf");
  84. NSLog(@"Y4hOGdJwL7IrjfgTpEvBMWl2KoySnmN6u1se3C9H");
  85. NSLog(@"4SwoufJv62NW9");
  86. NSLog(@"OnZrMdxFJg1yTjL5k8qBvt7oa6me");
  87. NSLog(@"R640iIZFQzSp9B");
  88. NSLog(@"grqtYWphLJUMj9");
  89. }
  90. -(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 {
  91. NSLog(@"Ql7b3yL68MIXwJVji0Btz1m");
  92. NSLog(@"tYdQ0CIHwcs9jFA");
  93. NSLog(@"KYragvNV3P4mSuzMCR0eqj6OJoLU7W2Qk");
  94. NSLog(@"54msxIdSuEj6q");
  95. NSLog(@"04jHIFqKvJtDGa8TcONgeQrzSo2Wm5BLpdksb");
  96. NSLog(@"XFL2EPiZYHNU");
  97. NSLog(@"QuW9LlZoP1JD3UrGMBmtNwVHk8c0C");
  98. NSLog(@"dy5EVIh16mbqoU90ZvljwWGJLYnFpax83i");
  99. NSLog(@"2FT0hPszcvmVMZX9YCIUDliu");
  100. NSLog(@"vQrWabVx4wc08DilTqZ");
  101. NSLog(@"qRBfYx4a6hpELbjWmtu5KoH8OCXGg9Divc");
  102. NSLog(@"0ZYM6Vyq142n3sHSjRp");
  103. NSLog(@"kPFqoiXgbaDTEI3vds96CtJrjMhUQR");
  104. NSLog(@"23jgwhENTLtqu5");
  105. }
  106. -(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 {
  107. NSLog(@"BE30zemoPlIt6Wa79U");
  108. NSLog(@"jqbKWvnBYcmpdztaSuwCo0OyMV679H8A2gZiDIlh");
  109. NSLog(@"C54lZqJoHj7nNPI1");
  110. NSLog(@"qVOcp1lWw4mYMEsxeaGK9z");
  111. NSLog(@"jKEazHyY5hUfn1sZdgrCqk6ucpM8JlGxeFAXtw7v");
  112. NSLog(@"rxwBkiMRED87hauy0QXclm");
  113. NSLog(@"gWeG8k2H5EUi3unXNO6cQLYSPslaDCZKTBR");
  114. NSLog(@"9ceaB13sA6");
  115. NSLog(@"Njhy9PHAY1XgnWiCFLvkQ8bIce7");
  116. NSLog(@"kcFUCgXwoEAVdeR26MSmO1Bh8qapDyPlNt3rWi");
  117. NSLog(@"lVpmWiM5cUFgXvJfyq");
  118. NSLog(@"8CM2xjVuXJmSpTRe4IBLlcWOA75b");
  119. NSLog(@"YzaeVigyCc2tBP1hI5FfDp7");
  120. NSLog(@"cSOoJUnE8rb0MWFVCyd6HzIwNhip27QLKDfl");
  121. }
  122. @end