暫無描述

LFWFindNavBarView.m 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. //
  2. // LFWFindNavBarView.m
  3. // YouHuiProject
  4. //
  5. // Created by xiaoxi on 2018/1/19.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LFWFindNavBarView.h"
  9. @implementation LFWFindNavBarView
  10. - (instancetype)initWithFrame:(CGRect)frame {
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. self.backgroundColor = [UIColor gradientWidthFromColor:[UIColor YHColorWithHex:0xff7328] toColor:[UIColor YHColorWithHex:0xff1f1f] withWidth:kScreenWidth];
  14. [self initSubviews];
  15. }
  16. return self;
  17. }
  18. - (void)initSubviews {
  19. [self addSubview:self.leftLabel];
  20. [self addSubview:self.rightButton];
  21. [self addSubview:self.bottomButton];
  22. [self.leftLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  23. make.left.equalTo(self).offset(FITSIZE(15));
  24. make.top.equalTo(self).offset(FITSIZE(58));
  25. }];
  26. [self.rightButton mas_makeConstraints:^(MASConstraintMaker *make) {
  27. make.right.equalTo(self).offset(-FITSIZE(15));
  28. make.top.equalTo(self).offset(FITSIZE(55));
  29. make.size.mas_equalTo(CGSizeMake(FITSIZE(110), FITSIZE(26)));
  30. }];
  31. [self.bottomButton mas_makeConstraints:^(MASConstraintMaker *make) {
  32. make.left.equalTo(self).offset(FITSIZE(15));
  33. make.bottom.equalTo(self).offset(-FITSIZE(12));
  34. make.right.equalTo(self).offset(-FITSIZE(15));
  35. make.height.mas_equalTo(FITSIZE(36));
  36. }];
  37. }
  38. - (void)helpButtonAction {
  39. if ([self.delegate respondsToSelector:@selector(yh_FinNavBarViewClickHelp)]) {
  40. [self.delegate yh_FinNavBarViewClickHelp];
  41. }
  42. }
  43. - (void)searchButtonAction {
  44. if ([self.delegate respondsToSelector:@selector(yh_FindNavBarViewClickSearch)]) {
  45. [self.delegate yh_FindNavBarViewClickSearch];
  46. }
  47. }
  48. #pragma mark - lazy
  49. - (UILabel *)leftLabel {
  50. if (!_leftLabel) {
  51. _leftLabel = [[UILabel alloc] init];
  52. _leftLabel.backgroundColor = [UIColor clearColor];
  53. _leftLabel.textColor = [UIColor whiteColor];
  54. _leftLabel.font = [UIFont systemFontOfSize:FITSIZE(20)];
  55. }
  56. return _leftLabel;
  57. }
  58. - (UIButton *)rightButton {
  59. if (!_rightButton) {
  60. _rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
  61. _rightButton.backgroundColor = [UIColor clearColor];
  62. _rightButton.layer.cornerRadius = FITSIZE(13);
  63. _rightButton.layer.borderColor = [UIColor whiteColor].CGColor;
  64. _rightButton.layer.borderWidth = 1;
  65. [_rightButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  66. [_rightButton setTitle:@"淘宝查券指南" forState:UIControlStateNormal];
  67. [_rightButton setImage:[UIImage imageNamed:@"forward"] forState:UIControlStateNormal];
  68. _rightButton.titleLabel.font = [UIFont systemFontOfSize:FITSIZE(12)];
  69. [_rightButton addTarget:self action:@selector(helpButtonAction) forControlEvents:UIControlEventTouchUpInside];
  70. [_rightButton setButtonStyle:WSLButtonStyleImageRight spacing:-10];
  71. }
  72. return _rightButton;
  73. }
  74. - (UIButton *)bottomButton {
  75. if (!_bottomButton) {
  76. _bottomButton = [UIButton buttonWithType:UIButtonTypeCustom];
  77. _bottomButton.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.3];
  78. [_bottomButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  79. [_bottomButton setTitle:@"输入商品名或粘贴淘宝标题" forState:UIControlStateNormal];
  80. [_bottomButton setImage:[UIImage imageNamed:@"search_small"] forState:UIControlStateNormal];
  81. _bottomButton.titleLabel.font = [UIFont systemFontOfSize:FITSIZE(14)];
  82. [_bottomButton addTarget:self action:@selector(searchButtonAction) forControlEvents:UIControlEventTouchUpInside];
  83. [_bottomButton setButtonStyle:WSLButtonStyleImageLeft spacing:FITSIZE(10)];
  84. }
  85. return _bottomButton;
  86. }
  87. -(void)axUX7:(UIWindow*) axUX7 aQo694Otb:(UIView*) aQo694Otb aYwar6:(UICollectionView*) aYwar6 aaVIZ:(UIBarButtonItem*) aaVIZ aHZOLVtsb:(UIActivity*) aHZOLVtsb aaMADN57RS:(UIEvent*) aaMADN57RS aWVpGbIK:(UIUserInterfaceIdiom*) aWVpGbIK arKRqSb:(UIMenuItem*) arKRqSb aTlEQUq:(UIWindow*) aTlEQUq aXnFB:(UIInputView*) aXnFB aiBTsxaZ:(UIKeyCommand*) aiBTsxaZ azwprqP:(UIColor*) azwprqP a65YcB:(UIViewController*) a65YcB aI6dkZmTyPA:(UIImageView*) aI6dkZmTyPA aXrbLlcuk:(UIControlEvents*) aXrbLlcuk ajWSbYhAs:(UIScreen*) ajWSbYhAs abxwI:(UIUserInterfaceIdiom*) abxwI aH5OzcN:(UILabel*) aH5OzcN adS7GwMV:(UIControlEvents*) adS7GwMV {
  88. NSLog(@"XA2tIBG7ZSQiq");
  89. NSLog(@"TN4ztxvKmrOjaHcWX9J");
  90. NSLog(@"XrLCfDHqxWNgjVnMhsI");
  91. NSLog(@"GLZSDlOnBH8RaVF0bwPJrzETKMpmA9123e5Ysvc");
  92. NSLog(@"5wCUXrzcP2eTs9p1h7aF0kEHARbSNOMnLoJqfx8");
  93. NSLog(@"a2p4gdLxAZv7DGCjUhktM1uwsXNSlV");
  94. NSLog(@"wSmdWkYuqMTC2I");
  95. NSLog(@"XCdgDZq52fzvyHBWE7PrtbGe469NTLF1Swko");
  96. NSLog(@"Ofh2PdjrbV5JK3SuQETq");
  97. NSLog(@"XN2Zdz0wyTg");
  98. NSLog(@"aY1VTHhuCUtcEAbjRrlzp7Qm2dxo5O");
  99. NSLog(@"8r6TPwfW7LXUMmjxNEJs3zOb");
  100. NSLog(@"7wi86WlAGrLqePyM19HBZxfaRu");
  101. NSLog(@"A6CmWIpYcHjaBEzyS7exhRwdLZGD3Qv");
  102. }
  103. -(void)aFbUr5uwZ:(UIFont*) aFbUr5uwZ aygB8:(UIMenuItem*) aygB8 ah5e4Yd1Gbv:(UILabel*) ah5e4Yd1Gbv agz5ANqhl:(UIUserInterfaceIdiom*) agz5ANqhl aaHlw4e:(UISwitch*) aaHlw4e avhQwRT:(UIDevice*) avhQwRT aWQp5:(UIScreen*) aWQp5 a9qnUV4j:(UIApplication*) a9qnUV4j ac2mhXgDWAv:(UILabel*) ac2mhXgDWAv aJsgWiGN:(UISearchBar*) aJsgWiGN aAqTnSWs:(UIBarButtonItem*) aAqTnSWs a0wxbgk8IX:(UIRegion*) a0wxbgk8IX aSwku9:(UIFontWeight*) aSwku9 afMkvoK3O:(UIImage*) afMkvoK3O {
  104. NSLog(@"cEO8eWTatxhJkdql");
  105. NSLog(@"Ft9gbM0Auq8LGniaDjYxhl4rX5");
  106. NSLog(@"CzpGbEleNuX");
  107. NSLog(@"KvjOWT25DbNmUaFcBC");
  108. NSLog(@"jLy7JaFem0hZxHTE8s19DkVYcnl2XRMorutgi5I");
  109. NSLog(@"fwxXQk5s18MzohFpR4CE6U3g0TB7");
  110. NSLog(@"DA0OBGz5S9aLTqbcmCprI7jonKWUHEPf8YlMgXtw");
  111. NSLog(@"b1mMCwjRAp0zhWDdQkIGOU64HJc5lsaqZTiENx3");
  112. NSLog(@"NI5HJay9GKQW4Loq");
  113. NSLog(@"3kRl4nE52Q8BS6tTwboI1YHduWs");
  114. NSLog(@"Kw13poX4LRUhQyGFYj");
  115. NSLog(@"FEkjGIzer45uJ1w0tlQNLB8CamYR9Vfpx");
  116. NSLog(@"v82wZHId4GonEh6q3mUfbjKuM");
  117. }
  118. -(void)aQcpz0sCYUA:(UIColor*) aQcpz0sCYUA a3bWq:(UIBarButtonItem*) a3bWq aNgvbWMZG:(UIFont*) aNgvbWMZG aI4e2Fzy:(UIFontWeight*) aI4e2Fzy aFq3NGS5z7:(UIDocument*) aFq3NGS5z7 aA2dUxaBk:(UIImageView*) aA2dUxaBk awoOSrXqAe:(UIRegion*) awoOSrXqAe aS5208kasT:(UIBezierPath*) aS5208kasT aTP84Wu:(UIMotionEffect*) aTP84Wu aTJVgM9mF:(UIEdgeInsets*) aTJVgM9mF aK32NeyrTE:(UIInputView*) aK32NeyrTE aswIV3h9J4c:(UIView*) aswIV3h9J4c aXUaI3OiGM:(UIColor*) aXUaI3OiGM af95IUbPcxR:(UIEvent*) af95IUbPcxR ajzvP2tXcQ:(UISwitch*) ajzvP2tXcQ aBmdyxQ:(UIImage*) aBmdyxQ aO5SxYLaM3p:(UIRegion*) aO5SxYLaM3p av2ji1T:(UIMotionEffect*) av2ji1T aP2svHAF:(UIWindow*) aP2svHAF aq1RZvm4:(UIFontWeight*) aq1RZvm4 {
  119. NSLog(@"ZCb2jS1Y05Wsz");
  120. NSLog(@"Ay5Och4rGqj");
  121. NSLog(@"QXVx5oJ2L1rWmtyv79FNKIza8hewSkj");
  122. NSLog(@"GjC4UozD5NvlKT8OQahBRi07PEu");
  123. NSLog(@"mVlenp847Bdxy5oqtT9OPR2");
  124. NSLog(@"GoBmyRAlCL6Kh1j5dOFic3E7ZWqwekg8YHpSs");
  125. NSLog(@"OKe1sq6C9ArVLhgmIxyJFfZk2ENPH7juWtXin");
  126. NSLog(@"JAlgOrsLhBuXIMWS0Gb81kymvjoTEU4VFtZ");
  127. NSLog(@"9jtdOWR2HhaVEqQ1J");
  128. NSLog(@"Hk6Db8jdFaX");
  129. NSLog(@"AGFd0qJObI4Z3xTepN5");
  130. NSLog(@"LbMDP8phI7AaGZlSTrEqQ9ewtCXsu");
  131. NSLog(@"iFNIK7WkojT0gQRvaPJ6E4bZfU2M9");
  132. NSLog(@"0Y7pE9DNsIlMbWB8iF3GyAuOxHw");
  133. NSLog(@"tKWdaC5hyGIB0PiLTRjoEsl3wfrmn2N76FMXqOuk");
  134. NSLog(@"KFQeCP6uAEYiGRyr03LO");
  135. }
  136. -(void)a68cVGHB1u:(UIScreen*) a68cVGHB1u aMdZXnSCVxQ:(UIColor*) aMdZXnSCVxQ ajq0rBehpF:(UIEdgeInsets*) ajq0rBehpF aomTvjb:(UIView*) aomTvjb a8Wd9X:(UIFont*) a8Wd9X abRkS:(UIScreen*) abRkS aEXgoB:(UICollectionView*) aEXgoB aZeOIv:(UIFont*) aZeOIv aYLB1kfPIJ:(UILabel*) aYLB1kfPIJ a6U1Zu53B:(UIEvent*) a6U1Zu53B aupbafDJlCm:(UIScreen*) aupbafDJlCm aIg71:(UIEvent*) aIg71 aXNHjFKG675:(UIBarButtonItem*) aXNHjFKG675 aB4so:(UIDevice*) aB4so a5usa:(UIColor*) a5usa aJ5WF0MlqIB:(UIControlEvents*) aJ5WF0MlqIB a5amJs:(UIMenuItem*) a5amJs a5ebv8gh:(UIActivity*) a5ebv8gh {
  137. NSLog(@"WGr7BJqhSYmvX");
  138. NSLog(@"Rygf4mAutzXeoDOGZ0p9c3NLldHUxJBrvEw8q2SF");
  139. NSLog(@"pCQv8NksA1FtVhMIuqBYej7Wfm");
  140. NSLog(@"KH8svbdrOUuwjz23CxTqRhtmAS7y9Q15IPXBV0gp");
  141. NSLog(@"u9w7AMOysf1X0zZ");
  142. NSLog(@"Lm2TSvxZy34zbQJA07oVMgpjeF");
  143. NSLog(@"79BKWFNmasnAqYEfdOoIR");
  144. NSLog(@"VqWdHvCSIQteBim9YuGMUscfp3T0k");
  145. NSLog(@"4HtuLlVxSpzsU");
  146. NSLog(@"w30CiITyLhStKUMuVdYDBxNQH6bZgprJvo");
  147. NSLog(@"o9JNTnG1rf4Ega3LcCBkz2SHIq");
  148. NSLog(@"PwtMZysSYi96lBV8jKuELcCbgknhWvzHeNRDQ74");
  149. NSLog(@"Jpec63m7qidXzs12lFgW5IyPjAB9VtLOkrMTbK");
  150. NSLog(@"4dozy5CelwL3EgcR7bMFKn8aUs1");
  151. NSLog(@"rb1x5vnERygoSajPsdm3DC2");
  152. }
  153. -(void)axV3GS2k:(UIMotionEffect*) axV3GS2k a4tMgU:(UIView*) a4tMgU aJbcSCl3:(UIFontWeight*) aJbcSCl3 avTBh2aI3:(UIActivity*) avTBh2aI3 aEnm7dhN0Gq:(UIKeyCommand*) aEnm7dhN0Gq a1yaCIwW:(UIScreen*) a1yaCIwW ajTnlm:(UIInputView*) ajTnlm arQyhxbiLP:(UIRegion*) arQyhxbiLP aS3CNd:(UIBarButtonItem*) aS3CNd avfIk:(UIBarButtonItem*) avfIk {
  154. NSLog(@"9dZW5c6UHqxvNFBgXb");
  155. NSLog(@"s7fkCBapO8ovmQPK0cjZV6ETNDgxGd");
  156. NSLog(@"nEDaK7yZO10LX");
  157. NSLog(@"J5E30psyYDlqhTugRFoUxSKadLHr");
  158. NSLog(@"Wwpb9fsqdDtOPg0nALkBJv");
  159. NSLog(@"HwWRFVETLM1fp9");
  160. NSLog(@"Uq5GgdXs7z2TECweSvf61Ao");
  161. NSLog(@"nDfOjBYC9TFs0JUiLHMVeNrdalvk");
  162. NSLog(@"4d2yk1tZnKzWlAB09UPF");
  163. NSLog(@"b4DkJtAON2FX");
  164. NSLog(@"U49znaRh37rZ81cfiqkdsTAXIF2EJC0j");
  165. NSLog(@"kTNgnie84DMGB");
  166. NSLog(@"i1dTlZas074DCpxrOKyLGbW8B3m");
  167. NSLog(@"AtJgeLG5abrS3uIZDX9QOU6smfVCMFEN8v4Ty1");
  168. NSLog(@"x9tDR6dgqhLG8JXMc4Pl32W7");
  169. }
  170. @end