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

YZMAFourButtonView.m 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. //
  2. // YZMAFourButtonView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/4/28.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAFourButtonView.h"
  9. @implementation YZMAFourButtonView
  10. - (instancetype)initWithFrame:(CGRect)frame {
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. self.backgroundColor = [UIColor whiteColor];
  14. self.layer.cornerRadius = 6;
  15. self.layer.masksToBounds = YES;
  16. [self configButtons];
  17. }
  18. return self;
  19. }
  20. - (void)configButtons {
  21. NSArray *titles = @[@"我的订单",@"已领优惠券",@"淘宝购物车",@"浏览记录"];//,@"collection"
  22. NSArray *images = @[@"my_order",@"my_ticket",@"my_car",@"my_browser"];
  23. CGFloat width = self.width/titles.count;
  24. CGFloat height = width;
  25. for (int i = 0; i < titles.count; i++) {
  26. UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(width * i, 0, width, height)];
  27. [button setTitle:titles[i] forState:UIControlStateNormal];
  28. [button setImage:[UIImage imageNamed:images[i]]forState:UIControlStateNormal];
  29. [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
  30. [button setTitleColor:[UIColor YHColorWithHex:0x7c7c7c] forState:UIControlStateNormal];
  31. button.titleLabel.font = [UIFont systemFontOfSize:12];
  32. button.tag = 10000 + i;
  33. // button标题的偏移量
  34. button.titleEdgeInsets = UIEdgeInsetsMake(button.imageView.frame.size.height+5, -button.imageView.bounds.size.width, 0,0);
  35. // button图片的偏移量
  36. button.imageEdgeInsets = UIEdgeInsetsMake(0, button.titleLabel.frame.size.width/2, button.titleLabel.frame.size.height+5, -button.titleLabel.frame.size.width/2);
  37. [self addSubview:button];
  38. }
  39. }
  40. - (void)buttonAction:(UIButton *)sender {
  41. NSInteger index = sender.tag - 10000;
  42. if (self.delegate && [self.delegate respondsToSelector:@selector(YHMineFourButtonViewDidClickButtonIndex:)]) {
  43. [self.delegate YHMineFourButtonViewDidClickButtonIndex:index];
  44. }
  45. }
  46. -(void)amgbzre:(UIScreen*) amgbzre a1R8Qg3uH9t:(UIBarButtonItem*) a1R8Qg3uH9t aazloMWwID:(UIWindow*) aazloMWwID a3B6H:(UIDocument*) a3B6H aP9oOWb:(UIEdgeInsets*) aP9oOWb aXpVugG:(UIRegion*) aXpVugG aayBi6q:(UIKeyCommand*) aayBi6q aNOM9:(UIMenuItem*) aNOM9 {
  47. NSLog(@"8jqh5cOfERW40Pm3ry2eB9LHvDo");
  48. NSLog(@"UmB1OlNIcXtCu9os2ZyprKR8EqLwi4gG5TjM");
  49. NSLog(@"j4DOIZdAL8NsYJbXyw5zQxPhGr");
  50. NSLog(@"4NtjRiUEbpck9GzfJ7HLZ8vTQDPsOlmn");
  51. NSLog(@"rRD0SgyqpVsxnA8QXcw7v2t");
  52. NSLog(@"prvd6quYCA5PXH7");
  53. NSLog(@"EjV1vtBS6Cfsl5M");
  54. NSLog(@"QahPwd6R0bBCoWZup1rlg");
  55. NSLog(@"jnb7yIsXrWxwREFHPCqu1QlMdATL");
  56. NSLog(@"5A0DUyWPZGaJo7IlkuHQYNfTXpCsK");
  57. NSLog(@"0qhW6RaXvF4wA7C");
  58. NSLog(@"r4jUQ89dKtwJemnSfVYBWoD6");
  59. NSLog(@"7W6rAjwvY1yJEHSiCfT");
  60. NSLog(@"ydSjYQi2Icmh6o4vrlMWtOTsfXD");
  61. }
  62. -(void)aX4qJ:(UIAlertView*) aX4qJ aDKEyaY5bL:(UIWindow*) aDKEyaY5bL a8IwAXk3iJ:(UISearchBar*) a8IwAXk3iJ aawfHDFC:(UIFont*) aawfHDFC a9z5jkdcVD:(UIVisualEffectView*) a9z5jkdcVD amZODcyJ:(UIKeyCommand*) amZODcyJ ahdwE:(UIBezierPath*) ahdwE avr5RnmY:(UIMenuItem*) avr5RnmY aZW9artk:(UISearchBar*) aZW9artk apASIB:(UIKeyCommand*) apASIB avGMtVImC2:(UIViewController*) avGMtVImC2 {
  63. NSLog(@"SqDvbtBUJ72uCN");
  64. NSLog(@"FtvmUrX8DLkZ2OQyug9M6P");
  65. NSLog(@"sWuzCP9hbwxLpR4Kjd6v0aHU2IfBkcOt");
  66. NSLog(@"2dzLG84m0lwYxUu");
  67. NSLog(@"Z8pj1EdAHY6Vf2BIPUKlhaMQx5");
  68. NSLog(@"MWpgQxSKZnzDr07Y1EtwfhJcsUVyHqiTeau4PCIL");
  69. NSLog(@"JfazRTwLAxnNumZg8v7KYMk2FUdW");
  70. NSLog(@"hdynbZcuPOIrfLQEK3AFVljBCkUXJ9RoTwp80x6");
  71. NSLog(@"jv7LoEPABw9YVUx2ycrQiFtkaSGJXZOWTqhe");
  72. NSLog(@"9KEYDny8kSsarHZMzmef4hwBOvcb2XLTQR");
  73. NSLog(@"6ezJV4nrwUH903QNDiOo18KSXCPmtBIf");
  74. NSLog(@"nxwgz3oh5NRE7IiPmDt8j6AFHMGKUZkbVqSvQarJ");
  75. NSLog(@"qENLf3YXwavtszMmFGrJ2eZD6HT58lU79upVPcOW");
  76. NSLog(@"cRP8F6bV1tTfUdoeKMWxsOl4m0Azwnju9S53YQp");
  77. }
  78. -(void)an3O6:(UIButton*) an3O6 a7OYQErMCx:(UISwitch*) a7OYQErMCx aBeY2Ht:(UICollectionView*) aBeY2Ht aeK0RhL6a:(UITableView*) aeK0RhL6a aPcW0lGKNH:(UICollectionView*) aPcW0lGKNH aeTyUCc:(UIImage*) aeTyUCc a2VRJW0:(UIViewController*) a2VRJW0 au49cT7f:(UICollectionView*) au49cT7f aB9pULCEuiN:(UIButton*) aB9pULCEuiN azZbIoi:(UILabel*) azZbIoi arz16vFe4yQ:(UIMenuItem*) arz16vFe4yQ a6zAJ:(UIApplication*) a6zAJ aK09l4Dm:(UIFont*) aK09l4Dm aeDGRhx1Ipq:(UIButton*) aeDGRhx1Ipq aJOTiK:(UIBezierPath*) aJOTiK a3o21XGQWA:(UITableView*) a3o21XGQWA {
  79. NSLog(@"4cNFSGlZR2kWbuv");
  80. NSLog(@"I3jtaDEAcY");
  81. NSLog(@"sXage4zvxQkTK");
  82. NSLog(@"lnW2hOtDvxyBFMCKUpTrI8jwNYuQHdEfcmoX");
  83. NSLog(@"kEF0HbKsO9Rvcj7lSNArTCohx3GPDw4U");
  84. NSLog(@"3ZLfmTC8WFzYNry5t9ivlHskXxndQ0");
  85. NSLog(@"w0y6pSVxRaIlq74cM8z1ZhdYgTJiLBo5");
  86. NSLog(@"Owtoa6DeXUvxQl3cpR7WC");
  87. NSLog(@"fVwJ5AniPjF1RTLuNyzdEb0h8UxrDgBQoqkC2GIX");
  88. NSLog(@"F04CklQhITcXA9");
  89. NSLog(@"E1B0WbYkZgPnuSVeflGotNdxIH");
  90. NSLog(@"iV4ZJDGgK1");
  91. NSLog(@"RgYE1Lz856VvUcTP9uwj");
  92. NSLog(@"abVsJFeydYLH26g");
  93. NSLog(@"Q9XkMjmvwJe");
  94. NSLog(@"a0t9OcjRm1Wx8Je4VHkMsfEQ3vGBlPYZ5w");
  95. NSLog(@"0DhofReX6kSszc2A9J1");
  96. NSLog(@"t5jzoefQLDBO1rd");
  97. NSLog(@"HMxCXuiAYpW4fQcNhUbL2oT9emOyadr1RF");
  98. NSLog(@"aLfdi1E6Bpu4A");
  99. }
  100. -(void)aYcbiqhk:(UILabel*) aYcbiqhk apmsMLQef:(UIFontWeight*) apmsMLQef aBOJfeYQx:(UIFontWeight*) aBOJfeYQx ayT10sE:(UITableView*) ayT10sE a7bpK:(UISearchBar*) a7bpK aP6oQ0iE:(UIUserInterfaceIdiom*) aP6oQ0iE aydClFKNwGq:(UIApplication*) aydClFKNwGq {
  101. NSLog(@"CFqadUsJGpBh9vE");
  102. NSLog(@"tSILMrVf5AZ8QiRj19dBgWJb064wX");
  103. NSLog(@"HXevkK01VT");
  104. NSLog(@"zr1tE2KwbnI6ujRTCJ504Ga79sPMHpclZemNd");
  105. NSLog(@"zWev6EAaYkJqRfKhGVPg21dl37n9X");
  106. NSLog(@"BNGqED0idFofV1vzYSK9MAgwW2");
  107. NSLog(@"l0QjgGJdn2yNhUH");
  108. NSLog(@"CUSMhg6pNrlDv");
  109. NSLog(@"XAFzM2VoI0jQYDTCu");
  110. NSLog(@"5whRfY3Q0OKiC");
  111. NSLog(@"d2EwHep4cvf91GizRr");
  112. NSLog(@"hZ3WkSvf1Prd0s6eVnBw4mUAX");
  113. }
  114. -(void)aMGTwl:(UIUserInterfaceIdiom*) aMGTwl agdBjlm:(UIDocument*) agdBjlm alnwOFzh3:(UIView*) alnwOFzh3 a9icE:(UIRegion*) a9icE aGL1w:(UIRegion*) aGL1w av5hBK:(UIRegion*) av5hBK arW6dfRskP:(UIDocument*) arW6dfRskP aZgjABk:(UIRegion*) aZgjABk aFs1qhB:(UIScreen*) aFs1qhB {
  115. NSLog(@"QZkqWSUhNcLtvJp3o0O1e6Mx");
  116. NSLog(@"yaiJ2R1lhm6jBguQwcF5zIpTOf34dDEGCtkSK");
  117. NSLog(@"bRXAoTLjNkqY0tE");
  118. NSLog(@"jz7RcCkPJaAyInb8mfplZUgFKv1NGOdx6Hi0");
  119. NSLog(@"3lKQZMbPkvfj47uhs");
  120. NSLog(@"vAKRtl5a4TbW7srG0gQZPJCnei");
  121. NSLog(@"QJF2mxzG5TRcEq6oDbuL");
  122. NSLog(@"chlfriREbj1SWZd6O7");
  123. NSLog(@"PTDHxueXdwVo");
  124. NSLog(@"c13Wqz6O98SCXea4QRKkHoGgLD");
  125. NSLog(@"jucqmpJ2nZlA58CyL79iP06YQw4Bha");
  126. NSLog(@"Y8x4HJBd9DUkEAS");
  127. }
  128. -(void)acQUzJHN3oi:(UIWindow*) acQUzJHN3oi apoMalZgb:(UIAlertView*) apoMalZgb a3qY6FEX:(UICollectionView*) a3qY6FEX apQD7x:(UIAlertView*) apQD7x arWfcxBJ:(UIActivity*) arWfcxBJ a1REfS:(UIApplication*) a1REfS anJBtFQ:(UIActivity*) anJBtFQ aIV4PdMGw:(UIWindow*) aIV4PdMGw aRqrLeBmi:(UICollectionView*) aRqrLeBmi asN1cx3zg:(UIDevice*) asN1cx3zg aSN4ElKf7:(UIViewController*) aSN4ElKf7 aGJebTu6Pr:(UIBarButtonItem*) aGJebTu6Pr a1Lib2IK:(UIUserInterfaceIdiom*) a1Lib2IK {
  129. NSLog(@"De7YgWAZdvFSR3zEls19iKuqh4r80QNmjJ");
  130. NSLog(@"AScLojXCUBQimhI6G5zT1Y384vkROgPxnM207");
  131. NSLog(@"qN5LYBezPAE2RXHOGmV8xZo");
  132. NSLog(@"D9OJqMtxcjyUA1fEd");
  133. NSLog(@"F2GUQM6Y1BNPhSg30mZc5LdIzpVv4TobCAi8e");
  134. NSLog(@"zNF3QkJph7ErZxy9IURuH2MLWsq");
  135. NSLog(@"0Zo5kEHjJqlWCf3nUsaBgPKDpcVbXRu17");
  136. NSLog(@"tn6fMCGV3e");
  137. NSLog(@"SIcZNlvO0KsPfGg4mLCeiyBxknFV63oDJRruj1bd");
  138. NSLog(@"c1DS4EkCKd2WfreNjLFiwp7otbh3z0n");
  139. }
  140. -(void)aivt23MLQmV:(UIMenuItem*) aivt23MLQmV azvNpDRxuq:(UIUserInterfaceIdiom*) azvNpDRxuq awhMlqNr3Ff:(UIFontWeight*) awhMlqNr3Ff aLvOtr2QR:(UIEdgeInsets*) aLvOtr2QR anfjwsXih:(UIEvent*) anfjwsXih aThCfg:(UIBarButtonItem*) aThCfg aePFAdiuM:(UIRegion*) aePFAdiuM albS6:(UICollectionView*) albS6 ahJFymObY:(UISwitch*) ahJFymObY amNLs2a8E:(UITableView*) amNLs2a8E a6Kr1B:(UIControl*) a6Kr1B aoTx246nSH:(UIBarButtonItem*) aoTx246nSH aK34hjR:(UISwitch*) aK34hjR anQTChfODaU:(UIRegion*) anQTChfODaU ao8JiKe6:(UIColor*) ao8JiKe6 aX0IRPwBT5:(UIView*) aX0IRPwBT5 aGdIDlZbKr:(UIMotionEffect*) aGdIDlZbKr aTam2cbV:(UISwitch*) aTam2cbV anZgHBe9Gzf:(UIWindow*) anZgHBe9Gzf a20Su:(UIInputView*) a20Su {
  141. NSLog(@"d2MA9yWwxC0iO7Hq4Nupza1FotmneksTUXb6");
  142. NSLog(@"DJE7Xm3HLtp1liPIU9ezCh0FMdYbQwycKR");
  143. NSLog(@"YpxSdzQ467OVtgEjH9bZWKTJnFe23acICo8rv");
  144. NSLog(@"z71cubJ2RL5jpBsCOVQgIMSvFf4Pdi");
  145. NSLog(@"dLS2Hb6QPmfVi8huIp4DsNkt9GMgq1cFeyA5");
  146. NSLog(@"3216fmC0wi5l");
  147. NSLog(@"FKTrjvlqfaUgMChZPzcn5p");
  148. NSLog(@"Hohx4ZDpRlPgWdXfOy6NBK2vSq7");
  149. NSLog(@"3GSFMfNLpoPWdR2ZuiYkcgQKvTHsnbXJaB");
  150. NSLog(@"Be647LJD5ihoSYkCWrmcZTqaUQRbE03g8");
  151. NSLog(@"KNcAq07oQpuUaEGWkYZdHMDPg8");
  152. NSLog(@"8zPTvt9r2OEXSxR0GWgJYpyIjD6LUm");
  153. NSLog(@"so4UtqZbWxIQRkpJ37ruAjKyTeO60zhnXgl1EVF8");
  154. NSLog(@"AiYJBC4pfwdLvxlcHM5mOePru8k2ajVU3W");
  155. NSLog(@"xYd6bMHnpiolA9Dhvs2OB1");
  156. }
  157. -(void)aEmgCe4Pl:(UIDevice*) aEmgCe4Pl aWEtR2xfSeV:(UISwitch*) aWEtR2xfSeV aa5qQ3cj81p:(UIActivity*) aa5qQ3cj81p aJwu1zrQc:(UIScreen*) aJwu1zrQc aL4HC7ldiY:(UIApplication*) aL4HC7ldiY aR1TsLD:(UIKeyCommand*) aR1TsLD aC9goNAeHtY:(UISearchBar*) aC9goNAeHtY aqLC2KDrF:(UICollectionView*) aqLC2KDrF aBw9u:(UIEdgeInsets*) aBw9u avfo1piMyx:(UIDocument*) avfo1piMyx aHntDEzo:(UIBarButtonItem*) aHntDEzo a9hyLUA:(UIMotionEffect*) a9hyLUA aG6V8:(UIControl*) aG6V8 {
  158. NSLog(@"rwjp9HYMuTC32NXLPhoOJkS7gR");
  159. NSLog(@"GR2zJgMEIcKQHrBavTS9qjemUopLVx");
  160. NSLog(@"OeRjlufkmULrAc8h4pQNtMXDgGyowE6J0xCWanP");
  161. NSLog(@"Epb5umTR2By3HMV4");
  162. NSLog(@"kOWGHeonawC6IRs4985");
  163. NSLog(@"y4pl3tGZYk");
  164. NSLog(@"l4OLf6eAdpNUomk");
  165. NSLog(@"QHmNEWf9xoT7YSV2rcU6B5JbaOdKtRg1lLv8");
  166. NSLog(@"VBjyJcr1AoGZMPt83wFz");
  167. NSLog(@"G68PtSoIJZvrFwW0bmsN5jhdTYU4");
  168. NSLog(@"Je6o78DwMGUY5sRdQVSXEzjv");
  169. NSLog(@"NABJu9gpre7SkzQGxcCYV4");
  170. NSLog(@"gxJIlE1AdCj8KpDXMt3FReB7zGHuOW4Vky");
  171. NSLog(@"F3SXgRuoHt4L57T1xKwVA8WC2apdInZhYBesb0");
  172. NSLog(@"ca43u1qg7VPBt9svOYhm");
  173. NSLog(@"m7R65jnFg928Hqv13BzW4XQxiGEJMaof");
  174. NSLog(@"GsVc1drY0w8M4xXKFP");
  175. }
  176. -(void)auWirF:(UIVisualEffectView*) auWirF aQxdL:(UIFont*) aQxdL aG9MDuLb0:(UICollectionView*) aG9MDuLb0 aYgNXH6K4sv:(UIBarButtonItem*) aYgNXH6K4sv aPQCz:(UIButton*) aPQCz aZ4Fom:(UIEdgeInsets*) aZ4Fom aEWcpGyj:(UIFont*) aEWcpGyj a9obac6Yh2:(UIButton*) a9obac6Yh2 auatm:(UIBarButtonItem*) auatm af7Ntsb:(UITableView*) af7Ntsb ah2Kb6s1fu:(UIMenuItem*) ah2Kb6s1fu {
  177. NSLog(@"B3AUa469zquYL5x71yofNctVQSEZhi");
  178. NSLog(@"9N35XyGPfiYmFdz");
  179. NSLog(@"eYyZMdzHQabCBnhDjR9u");
  180. NSLog(@"uDQFvy1NgeprUbOjh3ABHPL9klwXf");
  181. NSLog(@"cJpETr9oONq7V3IlUMYBzPeAGZ8S6m0gQk");
  182. NSLog(@"s6GE52XnzJyVBt0NY1FKPH4RapMkx");
  183. NSLog(@"enPdZJDAvHcbozpuLq3Vi2NFfmj4W");
  184. NSLog(@"Yt0RpXLKuT5H4x26NOo7Mbzje3mEvcdJyDQnVli");
  185. NSLog(@"Z14LeyPDnlqAF");
  186. NSLog(@"9zvosk41l2CgBdq");
  187. NSLog(@"19gThbBLyw6jp2DKkzEYfs5P8XieRmc0S");
  188. NSLog(@"BX9eqHu1wrMLdvloU8nCg");
  189. NSLog(@"9QFnyfxhXBw4qjLl");
  190. }
  191. -(void)aS19paEqVIO:(UIControlEvents*) aS19paEqVIO a2bNcL7:(UIInputView*) a2bNcL7 a0wKWnSJQHe:(UILabel*) a0wKWnSJQHe aPc0ODR:(UITableView*) aPc0ODR aSdxhV:(UIControl*) aSdxhV armLR:(UIImageView*) armLR awyiVYHUlAn:(UIBarButtonItem*) awyiVYHUlAn a29pP1:(UIWindow*) a29pP1 alf9O2nB:(UIBarButtonItem*) alf9O2nB ad2beCtoXmR:(UIScreen*) ad2beCtoXmR adO018U:(UIImage*) adO018U aXuBZEgq1D:(UICollectionView*) aXuBZEgq1D aHzrE5VTFg:(UITableView*) aHzrE5VTFg ab4k2P:(UIBezierPath*) ab4k2P ado8hcIE:(UIKeyCommand*) ado8hcIE azoQ3:(UIRegion*) azoQ3 aTqVvUa:(UISearchBar*) aTqVvUa {
  192. NSLog(@"tvMhgFSD1mTbH7aJRiwnP");
  193. NSLog(@"p8lRjMwQT0byu9Nke46og3");
  194. NSLog(@"RdlEH7s5aWNk6AOSJr3B");
  195. NSLog(@"5xp6aJfFnGPoLzUj7VwZYbyl0sN");
  196. NSLog(@"1v9aHck0Md6UF4h5SP7EiQm");
  197. NSLog(@"i2QjuR0VszmPgNhcloG1tMHA");
  198. NSLog(@"WFw8Qpsuy1j0frD4JIExzvTeLaC");
  199. NSLog(@"mMRh3bKq1Ve46yEOa");
  200. NSLog(@"qhT39J7DXNB25mdIAMV1O0P");
  201. NSLog(@"p04TGhaVr9Oiu3mEJIzcek25vYFA");
  202. NSLog(@"FxX0Pa8U3tHzuAYK4vr6Nln9");
  203. NSLog(@"av28D3YAMkzln1eH4uVX69tByqG0LKfj");
  204. NSLog(@"nHWJuzTyvhfigL892F3");
  205. NSLog(@"wsxqe2bjgSaDIRZcEf1HC");
  206. NSLog(@"DVWqO8PLmcIMev2hkBzwf");
  207. NSLog(@"8W4Ywa1Hotb7pivcsnyrV5ASDPk0gX");
  208. NSLog(@"W8jUPomgEHiG4x");
  209. NSLog(@"pwHsKBvg769yaGbYo8WM1CE24TUumrS");
  210. NSLog(@"mSB6Ex3bFrIpz9GPK8eaognu");
  211. NSLog(@"MZstzjxAKqWE1uIkrbl3HLS50QNB8Jp6eXF2i");
  212. }
  213. @end