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

YZMASearchTitleView.m 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. //
  2. // YZMASearchTitleView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/2/6.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMASearchTitleView.h"
  9. #import "MarqueeLabel.h"
  10. typedef void (^clickBlock)(void);
  11. typedef void (^closeBlock)(void);
  12. @interface YZMASearchTitleView ()
  13. @property (nonatomic, copy) clickBlock clickblock;
  14. @end
  15. @implementation YZMASearchTitleView
  16. - (instancetype)initWithFrame:(CGRect)frame searchName:(NSString *)searchName click:(void (^)(void))clickBlock{
  17. self = [super initWithFrame:frame];
  18. if (self) {
  19. self.clickblock = clickBlock;
  20. self.backgroundColor = [UIColor YHColorWithHex:0xeeeeee];
  21. self.layer.cornerRadius = frame.size.height/2;
  22. UIImageView *searchIcon = [[UIImageView alloc] initWithFrame:CGRectMake(15, 0, 20, 20)];
  23. searchIcon.image = [UIImage imageNamed:@"search_gray_small"];
  24. [self addSubview:searchIcon];
  25. searchIcon.centerY = self.centerY;
  26. NSMutableAttributedString *attStr = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@ ",searchName]];
  27. [attStr addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(0, attStr.length)];
  28. [attStr addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:14] range:NSMakeRange(0, attStr.length)];
  29. NSTextAttachment *attach = [[NSTextAttachment alloc] init];
  30. attach.image = [UIImage imageNamed:@"text_close"];
  31. attach.bounds = CGRectMake(0, 0, 7, 7);
  32. [attStr insertAttributedString:[NSAttributedString attributedStringWithAttachment:attach] atIndex:attStr.length];
  33. CGSize size = [PublicFunction getAutoWidthWith:searchName andSize:CGSizeMake(MAXFLOAT, 25) andFont:14];
  34. if (size.width > self.width-150) {
  35. size.width = self.width-150;
  36. }
  37. MarqueeLabel *searchText = [[MarqueeLabel alloc] initWithFrame:CGRectMake(40, 0, size.width+35, 25)];
  38. searchText.attributedText = attStr;
  39. searchText.backgroundColor = [UIColor colorWithRed:146/255.0 green:146/255.0 blue:146/255.0 alpha:1];
  40. searchText.layer.cornerRadius = 3;
  41. searchText.layer.masksToBounds = YES;
  42. searchText.centerY = self.centerY;
  43. searchText.textAlignment = NSTextAlignmentCenter;
  44. searchText.scrollDuration = 8.0;
  45. searchText.fadeLength = .0f;
  46. searchText.trailingBuffer = 10.f;
  47. searchText.animationDelay = 2.0f;
  48. searchText.userInteractionEnabled = YES;
  49. UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(closeAction:)];
  50. [searchText addGestureRecognizer:tap];
  51. [self addSubview:searchText];
  52. UITapGestureRecognizer *tapView = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(backAction)];
  53. [self addGestureRecognizer:tapView];
  54. }
  55. return self;
  56. }
  57. - (void)backAction {
  58. if (self.clickblock) {
  59. self.clickblock();
  60. }
  61. }
  62. - (void)closeAction:(UIButton *)sender {
  63. if (self.closeBlock) {
  64. self.closeBlock();
  65. }
  66. }
  67. - (CGSize)intrinsicContentSize
  68. {
  69. return CGSizeMake(200, 40);
  70. }
  71. -(void)a8zDUrb:(UIEdgeInsets*) a8zDUrb aOpujaSRHJh:(UIControlEvents*) aOpujaSRHJh amToZKMe0J:(UIEdgeInsets*) amToZKMe0J aKN61OVa9hl:(UIApplication*) aKN61OVa9hl aEMCeJo3ZH:(UIDevice*) aEMCeJo3ZH aDunZp2RBt:(UIEdgeInsets*) aDunZp2RBt aPBoTySNkFh:(UIApplication*) aPBoTySNkFh aRIuar:(UIEvent*) aRIuar aAtHpl3vT59:(UIEdgeInsets*) aAtHpl3vT59 afeP5841lgk:(UIActivity*) afeP5841lgk aBibGNpAH:(UIUserInterfaceIdiom*) aBibGNpAH aiXh0ku:(UISearchBar*) aiXh0ku aIGPy8:(UIDocument*) aIGPy8 a6HhGbkcQfg:(UIBarButtonItem*) a6HhGbkcQfg an4uV9Yjo:(UIDocument*) an4uV9Yjo aEFGiv4wNB:(UIUserInterfaceIdiom*) aEFGiv4wNB aeJ7f:(UIControl*) aeJ7f aYlWbEpFOTM:(UICollectionView*) aYlWbEpFOTM {
  72. NSLog(@"JHwlWCsqDGUaxfbgS90P6k5eQLrFnzRO");
  73. NSLog(@"iFMN9IhKft140uGC3HYzxJAjv");
  74. NSLog(@"3ZpgFOAuv0toREGH2YhQyPJVeScja");
  75. NSLog(@"DonBLhlyqdCu1jO3wXQNJp");
  76. NSLog(@"jh2DRWKsSq");
  77. NSLog(@"d23M4V9KZvrclJTFtaNpXbgQ7fRiW");
  78. NSLog(@"4q5wdniTZV3");
  79. NSLog(@"X2hraoPc3UzdTEJgF5Lm7");
  80. NSLog(@"wMn89zYCVTBaq4gIL");
  81. NSLog(@"ef3Uj50lsELHzGgq4YAiRnS6CJ9FIZBa2Mkyu");
  82. NSLog(@"4D3emKV9gNkwRLs");
  83. NSLog(@"J4EvaQmYKyVlk1u");
  84. NSLog(@"sJR9mDoSrclkYTy5IMjp");
  85. NSLog(@"0AUEz3b2xOv");
  86. NSLog(@"M80RunvbyW1tpsYUaiH7OgcCANwk6V");
  87. }
  88. -(void)aJadLFIEXU:(UIImageView*) aJadLFIEXU aQjA7k8WM:(UICollectionView*) aQjA7k8WM aWVBHepcq:(UIDocument*) aWVBHepcq axD7ZaYvlJ:(UIAlertView*) axD7ZaYvlJ aGy208z4OKR:(UIImage*) aGy208z4OKR apj3tGl:(UIColor*) apj3tGl aIGSM2:(UIDevice*) aIGSM2 a0Zxp:(UIControl*) a0Zxp aMrOSn1gl:(UIImage*) aMrOSn1gl aJy3MvVx:(UIMenuItem*) aJy3MvVx {
  89. NSLog(@"7rMtbBgIjxqcnQCyGW");
  90. NSLog(@"KmwzTuL9a5vGxFPecB1dSNYitHyW");
  91. NSLog(@"EsBGIHZo2m1bQjtP8");
  92. NSLog(@"cClQtG1qZUBD5OWYKbgfnIVyjNHoReFJ");
  93. NSLog(@"6052iaWhf3sw");
  94. NSLog(@"akbGOAY0B8Fe");
  95. NSLog(@"kMC9zXcU1tyFq72E8aeQA6siR0VGKPZ");
  96. NSLog(@"SipRQTkynlHAMe8wrYcj5vDO2GZubdgafosU");
  97. NSLog(@"gYciONEmaTvXpB2nZCM");
  98. NSLog(@"BAHEi2XDxfkl3aUsohFnGR4O");
  99. NSLog(@"VOceSdhiJj5xCwHy3oNGY74AfmWp");
  100. NSLog(@"GkSPeFXH1gy7iKLRht6AW0jqaYopZ");
  101. NSLog(@"aHdfVGMt9vBDRoCUk2uP4hxw7XeWFI8STrljOiK");
  102. NSLog(@"BklGfEMaPysmIqeQjF0zULb27pv5");
  103. NSLog(@"MO7PyDhc4Q6");
  104. NSLog(@"WB9QxMAdFtqfIl4Owm");
  105. NSLog(@"vd7jBzKg0ph5kWCIu3s");
  106. NSLog(@"7Ffo123GTJ8xj");
  107. }
  108. -(void)azsBNEUX:(UIFont*) azsBNEUX a2paT1dk5U:(UIBarButtonItem*) a2paT1dk5U ak18gbRBM:(UIControl*) ak18gbRBM aVH46ct:(UISwitch*) aVH46ct aqxtbK:(UILabel*) aqxtbK a42qPmrwt:(UISwitch*) a42qPmrwt abPYXne:(UIDocument*) abPYXne ayunFchk6Q:(UIVisualEffectView*) ayunFchk6Q awA5y9l:(UIControl*) awA5y9l aTKNuV:(UIInputView*) aTKNuV {
  109. NSLog(@"tzVlymDS7Lk41uMYFXP0sGb2");
  110. NSLog(@"QzImR91Hg3e2n0WySjdl");
  111. NSLog(@"tsyNiAJzICHWwZ");
  112. NSLog(@"jOgSL2FV7Y");
  113. NSLog(@"PWxH1twXEgKNLyO87b");
  114. NSLog(@"Dn4wdyq60B");
  115. NSLog(@"y1OdrhRqG9fEQka");
  116. NSLog(@"vcdKu1Wf8YCJV6UnmrZgxG0bIz4Tw7QsASND");
  117. NSLog(@"MZo457LEd0Jtx3geycHfrBCmOqP6uKpSTbQIUsz");
  118. NSLog(@"Df39NzrbCg0EnKwWLGkVqTsuOhvmSI5F7BoY6");
  119. NSLog(@"Uhy9nAMuaH478JTo0ti");
  120. NSLog(@"flK6MRArLTu0B3P7ziyOha4HNJUdc5");
  121. NSLog(@"PjLbe5TYyGfHEodWBNgh8");
  122. }
  123. -(void)aOT2W:(UIFontWeight*) aOT2W afBhLyg9jpU:(UILabel*) afBhLyg9jpU a0OYqfQb:(UIScreen*) a0OYqfQb ayjMhFz6T:(UIButton*) ayjMhFz6T acI2TK:(UIBarButtonItem*) acI2TK aCX3mxpyWA:(UIControl*) aCX3mxpyWA {
  124. NSLog(@"YTGsmdxaAKu39kR1EiPpXt");
  125. NSLog(@"KxeBgMr9lbEzw6IYGfm7U24qNLVFsToHS1");
  126. NSLog(@"WL59HxZhtsXnbGoFNVS");
  127. NSLog(@"Hl4AdtDoF6");
  128. NSLog(@"6PVqcJLlXzBRuOm08sGvt1wAeNrYkIT");
  129. NSLog(@"K0AwrXuyxMndeD9tUlOgIJQL1hY2C3p6javRVNP");
  130. NSLog(@"d5cfXy3svTRNQgpqnHm7ur98tjD");
  131. NSLog(@"B017iweqHnK8h");
  132. NSLog(@"xn0ym4zVrgf8aithZu2WROcKeNwvXYPSJq");
  133. NSLog(@"Jc4v3GF2dDNsaIyiKMnOlTZSuWx1ECrhztV");
  134. NSLog(@"ZKcPRLJploakfw15s7UzS2yngFN9");
  135. NSLog(@"oTDqMwbtcuBVpAQZ54WRKz3L1CeGfj");
  136. NSLog(@"oXyYQAtx1k");
  137. NSLog(@"3i9YSoULhmNVbx6I40OJrdcRkaTX5gF");
  138. NSLog(@"LJPOGA57on96jM");
  139. NSLog(@"Vx4Jrwzs01RlpagBo79QZUvuFHCMYbWmjS");
  140. NSLog(@"7h1N6xsG8cORyeM3D");
  141. NSLog(@"xKmZa6rcUzJkSgQLEbetwvyFX49o3jAB2s");
  142. }
  143. -(void)arvExRnHeK:(UIMenuItem*) arvExRnHeK ao1Z4KQpdw:(UIControlEvents*) ao1Z4KQpdw azVL7Z:(UIMenuItem*) azVL7Z aFMBH:(UIDocument*) aFMBH a32NkBR5Y:(UIVisualEffectView*) a32NkBR5Y aS0tl3vM9Pr:(UIImage*) aS0tl3vM9Pr ac9rPO:(UIApplication*) ac9rPO avUrh:(UIControl*) avUrh ar8i6GCLFB:(UIControlEvents*) ar8i6GCLFB aiPBzv:(UISearchBar*) aiPBzv aJ2ruGMwo:(UIControlEvents*) aJ2ruGMwo a5iz6:(UIBezierPath*) a5iz6 anSBy:(UIDocument*) anSBy aAfapUrk:(UIAlertView*) aAfapUrk ani9HKP2u:(UIEvent*) ani9HKP2u akzM5:(UIImage*) akzM5 aNLeJ:(UIControlEvents*) aNLeJ arC9tB6:(UIControlEvents*) arC9tB6 aI6Z2:(UIView*) aI6Z2 aCZwBM08R5n:(UICollectionView*) aCZwBM08R5n {
  144. NSLog(@"mUC1xc4KgyH");
  145. NSLog(@"rITVDoevJnS6aER3ksFcA");
  146. NSLog(@"sMmTGp9PyNK0UzRioYh6xej5Df8HF4wvSQJL");
  147. NSLog(@"bIwqcZJ8yszHW6NGO3oQ");
  148. NSLog(@"CLfKt8xw1qQ6dj3M");
  149. NSLog(@"3tQsJ1EOzlmDBkPpr2dXynUI");
  150. NSLog(@"K9Wf7Ue3XlAsaOik");
  151. NSLog(@"2w1uYXgN5OnMk7HiGxZAQjhtSB8q9p");
  152. NSLog(@"to3wxAHzc2Dhi6yfrRXZNmO1g5lkV8TBLG7C4");
  153. NSLog(@"8sB1o5AXOv3PMqblIWf");
  154. NSLog(@"yXe4iFsuSlRONwG");
  155. NSLog(@"JnzZbXQ5NtoOIGi3kdx6cv87jF2HaPSruhTy");
  156. NSLog(@"h4ITeSGV3Y");
  157. NSLog(@"qlVJ6U0jd23zr");
  158. NSLog(@"YwDeXOSMA8c0mIiyE");
  159. NSLog(@"yIsoprH0GKFaT461P9DE5QxdwUZblAtu");
  160. NSLog(@"jXZ5Fv4J8EB");
  161. }
  162. -(void)aFaj8E7o:(UISearchBar*) aFaj8E7o aeMzvF:(UIApplication*) aeMzvF aOKmL:(UIBezierPath*) aOKmL aOgbe9:(UIDevice*) aOgbe9 a71aB8K2Cex:(UIInputView*) a71aB8K2Cex aZ0D6:(UIAlertView*) aZ0D6 aqDfk3AE0hJ:(UIRegion*) aqDfk3AE0hJ {
  163. NSLog(@"N158ZtjsWfmIYwMbi");
  164. NSLog(@"HFatGMwRAbvIK");
  165. NSLog(@"PHf3pKG8T2Bte4");
  166. NSLog(@"YbZ8oT1xid7FE0QqVI24HWKpw");
  167. NSLog(@"evM3BoD2Y8GAE");
  168. NSLog(@"a2mQXC4ySMKVLoRFNB1gGpkj");
  169. NSLog(@"J8rmQIYdbgKU2As");
  170. NSLog(@"vVB84heZrOy");
  171. NSLog(@"dxUo5ktG7nKvmA03uYpzMgZjf4FaNXDO8CQHRw");
  172. NSLog(@"tpijLGdHBlsJ3Iv54q6yPFbhSUuAZwD");
  173. NSLog(@"M2zOCp6JvjHNZKSebxwX8uPFc5miVUTkdR17");
  174. NSLog(@"FtmoCpdKDE2iNa5RPTh0M8uksI");
  175. NSLog(@"8e7xd91zIFQp02luZ5VJnaAMoNHTR");
  176. NSLog(@"Pmad5qHzTWRVvYNh2wlKQyEAJCo7Mcgi9s");
  177. NSLog(@"p3wH0D7kI2TN");
  178. NSLog(@"qN1dAVRJPMKclnIt8ZgQ7");
  179. NSLog(@"nAFLEs5pjC7ah9MVrktUviQzNJT3qKmwbGP");
  180. NSLog(@"sRP3tdKA6qmY9");
  181. NSLog(@"ShxP2Cj5IX71Hqaickr9ndwO03KRZm6g");
  182. NSLog(@"hBsQbN4XjOnMvSuE50UAY8Zila2");
  183. }
  184. -(void)adM8pD:(UIColor*) adM8pD aWYHkI:(UIRegion*) aWYHkI arZUuH:(UIDevice*) arZUuH aQBTUqCf:(UITableView*) aQBTUqCf axLOhMZJC:(UIView*) axLOhMZJC awdWf0Gp:(UIVisualEffectView*) awdWf0Gp {
  185. NSLog(@"ePow5C9nsLzfcTjWJSmkvXYNEMaRqBuZh1Qldp");
  186. NSLog(@"HXSg0m7M6ZbCOIEsJh");
  187. NSLog(@"lw4ztOLEuf2YnA3aP91");
  188. NSLog(@"owbpv8kNaT1h74EDurJ");
  189. NSLog(@"wZCRBTEzVeFWD4S3ILdGr5gkp6iKvlyP1");
  190. NSLog(@"gq8fTEyoLdVZYHmPztnAIk3aXipGFu");
  191. NSLog(@"eMmEHFQAYTxNuZPRtUdl4");
  192. NSLog(@"pSAfhjvH3J0ltV8sFRKL");
  193. NSLog(@"ltwBhuUKSFTWYaLsvefNbOCV2");
  194. NSLog(@"1ipBb27mAcMlwvSntsEJeQP8");
  195. NSLog(@"cCzO2XsoVgQBeu9");
  196. NSLog(@"g7UnuQ3zVtxvqD");
  197. NSLog(@"7NF5u2gta4KemPGEcYJMzqvlVy");
  198. NSLog(@"RnWfzSU9d4yso63L7D1KMGIqeaimHkwJp0EOYlT");
  199. NSLog(@"cvxY7Hk3UWngbB4AeiPauo25fdMN");
  200. NSLog(@"sMz7R6LGyUgxETeZQIFqnStkWuYc");
  201. NSLog(@"aA350sogFwUKxS");
  202. NSLog(@"laxpyjPNBYrDFoW24fnibsdvqJQ1mwUAMhG");
  203. }
  204. -(void)ata5N2:(UIButton*) ata5N2 a9oiXVna:(UIButton*) a9oiXVna a6muVSN:(UIViewController*) a6muVSN ap62wy:(UIImage*) ap62wy aslgaRco:(UIViewController*) aslgaRco alpWd:(UIColor*) alpWd aJoDlZW:(UIImageView*) aJoDlZW aLRMEpI:(UIFontWeight*) aLRMEpI aA9VH:(UIBarButtonItem*) aA9VH {
  205. NSLog(@"EDfgOyuIXR0szNv8tnU4axVjr9ZMS3FdkP56J7");
  206. NSLog(@"AM6YX9vlxRoanbSiZtPk8G34WfugV");
  207. NSLog(@"BlUQEH0j8ou7AN3R915kXZmbIPLwgTWxYFSciK");
  208. NSLog(@"y3FrdA0mozaKw4O2HVfisTEvZJ");
  209. NSLog(@"l0OGny1dLjKf");
  210. NSLog(@"7tqPmQNgTr1sWIoC3M9OEveR8kpSxKZafbc5");
  211. NSLog(@"glsnfoJKvG0YiX7pE8");
  212. NSLog(@"kSMHpQCIODJEzGhuNR9owiP7FV6l3");
  213. NSLog(@"LzUCNwkbGxiyT5gIjFf98PKu37YHOJ1DaZ6n");
  214. NSLog(@"fyrsAvmH6CntPgeZhBJ4u");
  215. NSLog(@"q5CMH3LZNuAFOd08bTzpleIUfwocYn64RaVrWG9y");
  216. NSLog(@"z8jSWhe76JR");
  217. NSLog(@"KpBfnwFYbd5XGSJzRgxOycN");
  218. NSLog(@"lCN5WPXnLAI20dag1G3pQwj");
  219. NSLog(@"9IkCxpryM7l3hEYF2ijtnVqgHBKsWvd");
  220. NSLog(@"fO2hmR31GPLsXSTgu8vMN9DFJec6xi4HaAClBdj");
  221. NSLog(@"147FbIHoJWVZTDg6Uyz");
  222. NSLog(@"3jLxf6JRm29XOdySEqGBnK");
  223. }
  224. @end