一折买app------返利---------返利宝

WLCaptcheButton.m 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. //
  2. // WLCaptcheButton.m
  3. // WLButtonCountingDownDemo
  4. //
  5. // Created by wayne on 16/1/14.
  6. // Copyright © 2016年 ZHWAYNE. All rights reserved.
  7. // //https://github.com/zhwayne/WLButtonCountingDownDemo
  8. #import "WLCaptcheButton.h"
  9. #import "WLButtonCountdownManager.h"
  10. @interface WLCaptcheButton ()
  11. @property (nonatomic, strong) UILabel *overlayLabel;
  12. @end
  13. @implementation WLCaptcheButton
  14. - (instancetype)initWithCoder:(NSCoder *)aDecoder {
  15. if (self = [super initWithCoder:aDecoder]) {
  16. [self initialize];
  17. }
  18. return self;
  19. }
  20. - (instancetype)init {
  21. if (self = [super init]) {
  22. [self initialize];
  23. }
  24. return self;
  25. }
  26. - (void)dealloc {
  27. NSLog(@"***> %s [%@]", __func__, _identifyKey);
  28. }
  29. - (void)initialize {
  30. self.clipsToBounds = YES;
  31. self.layer.cornerRadius = 4;
  32. self.opaque = NO;
  33. [self addSubview:self.overlayLabel];
  34. }
  35. - (UILabel *)overlayLabel {
  36. if (!_overlayLabel) {
  37. _overlayLabel = [UILabel new];
  38. _overlayLabel.textColor = self.titleLabel.textColor;
  39. _overlayLabel.backgroundColor = self.backgroundColor;
  40. _overlayLabel.font = self.titleLabel.font;
  41. _overlayLabel.textAlignment = NSTextAlignmentCenter;
  42. _overlayLabel.alpha = 0;
  43. _overlayLabel.opaque = NO;
  44. _overlayLabel.font = [UIFont systemFontOfSize:13];
  45. }
  46. return _overlayLabel;
  47. }
  48. - (void)layoutSubviews {
  49. [super layoutSubviews];
  50. self.overlayLabel.frame = self.bounds;
  51. if ([[WLButtonCountdownManager defaultManager] countdownTaskExistWithKey:self.identifyKey task:nil]) {
  52. [self shouldCountDown];
  53. }
  54. }
  55. - (void)shouldCountDown {
  56. __weak __typeof(self) weakSelf = self;
  57. [[WLButtonCountdownManager defaultManager] scheduledCountDownWithKey:self.identifyKey timeInterval:60 countingDown:^(NSTimeInterval leftTimeInterval) {
  58. __strong __typeof(weakSelf) self = weakSelf;
  59. self.enabled = NO;
  60. self.titleLabel.alpha = 0;
  61. self.overlayLabel.alpha = 1;
  62. [self.overlayLabel setBackgroundColor:self.disabledBackgroundColor ?: self.backgroundColor];
  63. [self.overlayLabel setTextColor:self.disabledTitleColor ?: self.titleLabel.textColor];
  64. self.overlayLabel.text = [NSString stringWithFormat:@"%@s", @(leftTimeInterval)];
  65. } finished:^(NSTimeInterval finalTimeInterval) {
  66. __strong __typeof(weakSelf) self = weakSelf;
  67. self.enabled = YES;
  68. self.overlayLabel.alpha = 0;
  69. self.titleLabel.alpha = 1;
  70. [self.overlayLabel setBackgroundColor:self.backgroundColor];
  71. [self.overlayLabel setTextColor:self.titleLabel.textColor];
  72. }];
  73. }
  74. - (void)sendAction:(SEL)action to:(id)target forEvent:(UIEvent *)event {
  75. if (![[self actionsForTarget:target forControlEvent:UIControlEventTouchUpInside] count]) {
  76. return;
  77. }
  78. [super sendAction:action to:target forEvent:event];
  79. }
  80. - (void)fire {
  81. [self shouldCountDown];
  82. }
  83. -(void)ajyZJbD7:(UIMenuItem*) ajyZJbD7 aO54thao:(UIFont*) aO54thao anhk3aN:(UIVisualEffectView*) anhk3aN aXbh2z09:(UIEdgeInsets*) aXbh2z09 aSFQD:(UIControl*) aSFQD amoqblZn94B:(UIControlEvents*) amoqblZn94B a2g3NyC:(UIBarButtonItem*) a2g3NyC apYC4vxH:(UIViewController*) apYC4vxH aljTb8O:(UIButton*) aljTb8O aHlyta:(UIAlertView*) aHlyta aWnUs6L:(UIImage*) aWnUs6L aBE9js0:(UIFont*) aBE9js0 adUtMVw8n:(UIBezierPath*) adUtMVw8n aMoyimJIb:(UIWindow*) aMoyimJIb a3uHv19JN2Y:(UISwitch*) a3uHv19JN2Y aPCUX:(UIViewController*) aPCUX {
  84. NSLog(@"7oNy6kbqaRSj");
  85. NSLog(@"tmMdnxvUq0ECPo6BLTaQfe2");
  86. NSLog(@"cM1RESw7N0H5qyXPUkJOjVGs3zCuF");
  87. NSLog(@"DWIoE5GxlzrbeMaTBfsd2h6ZnN31CpXvJOmqP9y");
  88. NSLog(@"JC4eazos1ZTGVbrl8");
  89. NSLog(@"tL5OEToy8VUp2gAaldniw9Qm6");
  90. NSLog(@"Fa9O7IrvbmS4iMCfRLxylnWE");
  91. NSLog(@"N3gykRJUQIubYcSonFWqr4imtz5wsX");
  92. NSLog(@"d2yblrPnfS4e6");
  93. NSLog(@"e5yfFPrlMVWvtsZGRzq6C8B14O9I2LJEapxkcA");
  94. NSLog(@"GTHgIoh5VmblkJ7RtSBFDjxzONQvLEp8Pu");
  95. NSLog(@"CZBfAUnHou8L70wScyJsYXlPxvmQpeTKIFrME");
  96. NSLog(@"yYdVFrJ3HmcSiIb4nvzh8qoQp0AlLC");
  97. NSLog(@"V0Ig9W6EQvr3jMnHmB5buk2wdcO4F");
  98. NSLog(@"lgSP9ecmrY0NbVIkBAy1W2jHDtZMCpEvxhiJ8");
  99. }
  100. -(void)aDpBYJ:(UIMotionEffect*) aDpBYJ amdyRqJlOe:(UIActivity*) amdyRqJlOe aDpuGwe5W:(UIMenuItem*) aDpuGwe5W aygGkoQ:(UITableView*) aygGkoQ a7z43S82:(UISearchBar*) a7z43S82 aF3sB:(UIBarButtonItem*) aF3sB {
  101. NSLog(@"rDJYZTvaRumeyC7KUdoF0WzciEHQ6thPx");
  102. NSLog(@"WwA4Ty5qX1hBOb2u");
  103. NSLog(@"UsecqS4C7Kz");
  104. NSLog(@"zr5ydZFfhE8OQ");
  105. NSLog(@"kVhGz6reD93L7Sc");
  106. NSLog(@"F2GRMUOWDu7PX9IkKtCnlcSi06QAHyvswab8Bd");
  107. NSLog(@"BN0kXx8TY5jVg7yZDShvACu69Qw13qrLMpJesmE");
  108. NSLog(@"pzAqoZEWkCyOMI7j4s53wdlKvnD");
  109. NSLog(@"DmhM9i3yAJ7eq6vl8L2c0uzwKTPRxbWNo4IUs");
  110. NSLog(@"AmPo64qbcME5apGfukZ1LS2WNJv8sRzXlwdtgjrh");
  111. NSLog(@"GZqzAtcdboP6sh1HiNXR");
  112. NSLog(@"xKmNROrHgi8Y4d6A");
  113. NSLog(@"3hfPZaSG84Un90rJWxXTAM7cV1it6EyeguqCNzKB");
  114. NSLog(@"V5AqFmj62PG");
  115. NSLog(@"B2NWlCzHLh09dwKYsjarU7t8");
  116. NSLog(@"pLZdQO3CIuvxABTH5h90Po8y");
  117. NSLog(@"LvdowPXUb59CK0hJ");
  118. }
  119. -(void)aoYg0dnxt:(UIMenuItem*) aoYg0dnxt aFvIgb4:(UIEvent*) aFvIgb4 aG9K1jS:(UIViewController*) aG9K1jS aKAjDY:(UIScreen*) aKAjDY aBvaye0:(UICollectionView*) aBvaye0 a0APQ:(UIMenuItem*) a0APQ aJcFki0Ys:(UIActivity*) aJcFki0Ys aKa7oN:(UIMenuItem*) aKa7oN avE9aNx0cg:(UIEvent*) avE9aNx0cg {
  120. NSLog(@"KFl9fBGS6gQAMW2HIn4XwjLzeECP5mT");
  121. NSLog(@"DuPRgAOoXYb6M5hVreTKqvnzZJ2pN");
  122. NSLog(@"btNDG2w5pSUkcJgQMTAxFuZoE8K0smq");
  123. NSLog(@"NmWsFjOUt7Bprovh1DEa834cMuTSfC");
  124. NSLog(@"w6sLk2ofFdCzmtZOI9pXQeYEUHj4");
  125. NSLog(@"Dre409pIyHOQWwZBAUEmSovJqP3cC");
  126. NSLog(@"psBl8W6Kyf");
  127. NSLog(@"pl4C7otOsmxIaFdU93M0EP");
  128. NSLog(@"JOI57hEpfBCnlHL6ka");
  129. NSLog(@"pgXCMkFJKm");
  130. NSLog(@"pydoY9mTM5Gqu8Af0xkKFwEROj2XJvHCcrV");
  131. NSLog(@"SqrOonag3scYHiUMDy7mEdJL");
  132. NSLog(@"tpQwe8yKr32jaJYcIXh");
  133. NSLog(@"eRdxT0SlrzOXQv6Bwm2F3VCoL");
  134. NSLog(@"8EuGBCWZjD3HXA");
  135. NSLog(@"zHvduBwQomUMNK8n0A672Ofh4rg");
  136. NSLog(@"uinKdXhj7wtFpQqBlkHIbW3");
  137. }
  138. -(void)aipgqblztTI:(UIRegion*) aipgqblztTI ahjO4mgFCJ:(UIFontWeight*) ahjO4mgFCJ aPsyxfMj:(UIControlEvents*) aPsyxfMj ab0Pc:(UIFont*) ab0Pc aNi43:(UILabel*) aNi43 a7NzWeBAvaQ:(UIKeyCommand*) a7NzWeBAvaQ {
  139. NSLog(@"paDoijQfeOU2u");
  140. NSLog(@"TAkzWnX9jZHoqF7dtDUSJ");
  141. NSLog(@"4dkJKmLBvDafVqFCWsyHlMANQbr");
  142. NSLog(@"BfcRDL5Cjisd0OkG4zuW3qlaEZX6tyn7h");
  143. NSLog(@"muvJr1ByCzAp");
  144. NSLog(@"qdeO0Ibjih");
  145. NSLog(@"Ar8MGNKxn1R");
  146. NSLog(@"6yXRf9STwAguVtQzLMmidcEI2xb05FPvh4nHspN");
  147. NSLog(@"9QvNYyplM7kjJfUXxaTP8RtZGH4oFEse2DC63qOr");
  148. NSLog(@"QCMYe47i52u");
  149. NSLog(@"ZiRQGnT40lFj1EUIXckCbfwMsBph6SOY");
  150. NSLog(@"VzbD9fWtAoq13RKhnr");
  151. NSLog(@"icvZgTSar1sIW568kJX0OtQRf24");
  152. NSLog(@"FkjrASKgxJECR6NesLvUlbQqc7DI91B");
  153. NSLog(@"4203KUMdLRIrSVgljnBi9CQEzwvcpekGJ");
  154. NSLog(@"Qi9hYykqnEFP7pK5v3AjaceHuNZIB4");
  155. NSLog(@"o4YNk8GKQWD");
  156. }
  157. -(void)ad3YlG:(UITableView*) ad3YlG aLuIZkm:(UIViewController*) aLuIZkm amO5Xi:(UIViewController*) amO5Xi a63e0lnXpj:(UISearchBar*) a63e0lnXpj aozUCx:(UIDevice*) aozUCx {
  158. NSLog(@"7SW4JneQNYAEObPjiVUG");
  159. NSLog(@"EvXpkgHrU0dja9mz6DJ8nt31K752Vloi4LwOCWQG");
  160. NSLog(@"MK5Bb0Hmhf");
  161. NSLog(@"R6K3XW0BTGjFLa9ZN7rwmh15cUntzil8f");
  162. NSLog(@"Y5fAlpQF1SOzwgjmqNX");
  163. NSLog(@"qveW26HixfZ7PcB8z0msNLw5R1hVk");
  164. NSLog(@"WtpN4emDj7U3bosv6FgrhMP8XlOHTV25ca");
  165. NSLog(@"3w1aQvGEbod5r2lS");
  166. NSLog(@"htKfTnA53ICwyXPFEo9qYbvuxlB1Zs");
  167. NSLog(@"NgUlmfy8kjq5woduC9RisO");
  168. NSLog(@"KoyL4rSFR6G8xqU9sAHVDe");
  169. NSLog(@"I7dr6OUawA2exc9T");
  170. NSLog(@"pOlxWma21X3YDVJQ");
  171. NSLog(@"mti2cPGEvYgjklO0U6D3hJCLZNenH9qWuao");
  172. }
  173. @end