暫無描述

LFWMineFourButtonCell.m 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. //
  2. // LFWMineFourButtonCell.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/22.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LFWMineFourButtonCell.h"
  9. @implementation LFWMineFourButtonCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. // Configure the view for the selected state
  17. }
  18. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  19. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  20. if (self) {
  21. [self configButtons];
  22. }
  23. return self;
  24. }
  25. - (void)configButtons {
  26. NSArray *titles = @[@"我的订单",@"已领优惠券",@"浏览记录"];//,@"collection"
  27. NSArray *images = @[@"order",@"quan",@"history"];
  28. CGFloat width = SCREEN_WIDTH/3;
  29. CGFloat height = SCREEN_WIDTH/4;
  30. for (int i = 0; i < titles.count; i++) {
  31. UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(width * i, 0, width, height)];
  32. [button setTitle:titles[i] forState:UIControlStateNormal];
  33. [button setImage:[UIImage imageNamed:images[i]]forState:UIControlStateNormal];
  34. [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
  35. [button setTitleColor:[UIColor YHColorWithHex:0x7c7c7c] forState:UIControlStateNormal];
  36. button.titleLabel.font = [UIFont systemFontOfSize:12];
  37. button.tag = 10000 + i;
  38. // button标题的偏移量
  39. button.titleEdgeInsets = UIEdgeInsetsMake(button.imageView.frame.size.height+5, -button.imageView.bounds.size.width, 0,0);
  40. // button图片的偏移量
  41. button.imageEdgeInsets = UIEdgeInsetsMake(0, button.titleLabel.frame.size.width/2, button.titleLabel.frame.size.height+5, -button.titleLabel.frame.size.width/2);
  42. [self.contentView addSubview:button];
  43. }
  44. }
  45. - (void)buttonAction:(UIButton *)sender {
  46. NSInteger index = sender.tag - 10000;
  47. if (self.delegate && [self.delegate respondsToSelector:@selector(YHMineFourButtonCellDidClickButtonIndex:)]) {
  48. [self.delegate YHMineFourButtonCellDidClickButtonIndex:index];
  49. }
  50. }
  51. -(void)adHbkG:(UIUserInterfaceIdiom*) adHbkG aJ7Hr:(UIViewController*) aJ7Hr aBdUrYX7C:(UIVisualEffectView*) aBdUrYX7C azYvBjZk5u:(UIAlertView*) azYvBjZk5u aQezqCFU:(UIWindow*) aQezqCFU aQ4ZRmGoa3f:(UIApplication*) aQ4ZRmGoa3f adUv9gaT:(UIImageView*) adUv9gaT a9yTY61EkvN:(UIUserInterfaceIdiom*) a9yTY61EkvN aNdZv:(UIControlEvents*) aNdZv {
  52. NSLog(@"mjcReiHqbI5kJOsu4");
  53. NSLog(@"JL7bZSGUKWQ9oBaYXDtlpfjEVPcv3NI810");
  54. NSLog(@"5YR4eZ9EsynmOjk");
  55. NSLog(@"0rBUbYoafKnujJ4HQ1NgMiZG5zPvwm2l68");
  56. NSLog(@"skdYzLZVM15fFo4e2pW3BENICQhwyKc7a8jv");
  57. NSLog(@"KEuUi3rgLncYvZjFHDkNQJa7zxel0s");
  58. NSLog(@"OBgX51Gxvse7t6AHJ0jrdTLYMFIP9");
  59. NSLog(@"rEA2WPFp9GVR");
  60. NSLog(@"6XV4GohqOBJ9C0krPznEcNtZepwfj");
  61. NSLog(@"2JT78cW0YiB");
  62. NSLog(@"Y21EwstrGmS5hiqkPyneocQ8WzxdUTXl");
  63. NSLog(@"BUDRGwVysEm3eLgdJ4rt5T7ja");
  64. NSLog(@"BkvyDIWpQF53EfhVRN1P68X9eJ");
  65. NSLog(@"rH8ngKJIajOusFb4m1iYxh56d2CNtTEZ");
  66. NSLog(@"TXMOxPW9DIgoy3");
  67. NSLog(@"A4s2dq5ktxI0fM");
  68. NSLog(@"sqGbnLhCUSaKgOcWvZBIE07TPR2f6p59emJtu");
  69. NSLog(@"9tSysQK4RrAezWLO8VY5PEoZlXwC2G");
  70. NSLog(@"YMORkIGSNrqcZ1haB");
  71. NSLog(@"R5zryVnjSDkfLuTGPxqa8IJF");
  72. }
  73. -(void)a4I0qPoJ:(UIWindow*) a4I0qPoJ avdLXQbmNY:(UIControl*) avdLXQbmNY aDxWf8KQGs:(UIColor*) aDxWf8KQGs aPQDrpBwT:(UIViewController*) aPQDrpBwT ayDU0dxqAQ5:(UIScreen*) ayDU0dxqAQ5 aQqzVnrSgZv:(UIScreen*) aQqzVnrSgZv atjGb91UKMy:(UIDocument*) atjGb91UKMy aQqJOmrK0W:(UIBarButtonItem*) aQqJOmrK0W {
  74. NSLog(@"G95E0aQkjNuAvItPlSRoe6M4rqXiy3");
  75. NSLog(@"3AcmV6ewlDaEvL7r8jsXIPgbnGHfqhoJd4uB");
  76. NSLog(@"xnAmdEOtW0g");
  77. NSLog(@"belpYadgJQn9I8OtFqK1yfSwvU");
  78. NSLog(@"y3tDjYLd7z1uBbl4ERi0TPS9nAM6NrGs8H");
  79. NSLog(@"s95xzmWuScvT4a8A7efB0QdUKt");
  80. NSLog(@"M9j4GbVrkuX");
  81. NSLog(@"GbVFTO5vSnsu3PBUpc9HCtehDq");
  82. NSLog(@"k5AVCNWdyj6mR2SeXtMgq3ZPF4zuwxnorQLY0");
  83. NSLog(@"1Uu4I2zOhA5B9S36JbnFtlTpQf7kLxHDeqMPVro");
  84. NSLog(@"UFYJl5MgZj8K0WvzA7SE3c942br1seHxhqywQTmD");
  85. NSLog(@"FuPZkUnweH3rIl6Y0C7d");
  86. }
  87. -(void)apd2Zalx:(UIViewController*) apd2Zalx aLHndtP:(UIDocument*) aLHndtP aBlVMy:(UIApplication*) aBlVMy a2fiA:(UIFontWeight*) a2fiA ajhRl4NYfJ:(UIUserInterfaceIdiom*) ajhRl4NYfJ agjXh4:(UIAlertView*) agjXh4 acxZRY9:(UIView*) acxZRY9 a1Fbu:(UIUserInterfaceIdiom*) a1Fbu aV2fh4dnFIc:(UIEvent*) aV2fh4dnFIc atm41k:(UIInputView*) atm41k a1hDvy5KIp:(UIBarButtonItem*) a1hDvy5KIp ajSy1NtR:(UIApplication*) ajSy1NtR asPXaKOFu7:(UISearchBar*) asPXaKOFu7 aAYVz2M:(UIControlEvents*) aAYVz2M aFVwyPhuAqd:(UIEdgeInsets*) aFVwyPhuAqd a7Sk5:(UIMotionEffect*) a7Sk5 aHwCL0AFSY:(UISwitch*) aHwCL0AFSY a4zQMeufIZ:(UIBezierPath*) a4zQMeufIZ adEn1Jjz4:(UIBarButtonItem*) adEn1Jjz4 {
  88. NSLog(@"S4yJdkDbToZErH1mseOj9");
  89. NSLog(@"0GBtiDCwoE5OR");
  90. NSLog(@"C8ezvu49Df");
  91. NSLog(@"Xv4ceCm7L6zNySiWOIGfsZaqpjM8F3Y");
  92. NSLog(@"btdghJ5oG7U");
  93. NSLog(@"UZYHEkuMJW6");
  94. NSLog(@"5NlaMmjKGTF6BUqfy4ZewSIb");
  95. NSLog(@"upROgrfW0jVb52ZyDId9Bh3Kt1qa8ExF");
  96. NSLog(@"lZJ36kPw04hj18WeQIdcHyM");
  97. NSLog(@"45DbqKdzBEw9ytOhLZrFY1MGval");
  98. NSLog(@"w4W1RP6YapizGH");
  99. NSLog(@"x6sbZ4nVHRruQFial2TpSm0gNUyC");
  100. NSLog(@"2bhiHsagoWLSImeuXOTQpFvy");
  101. }
  102. -(void)aqBhuv1y7:(UIDocument*) aqBhuv1y7 aaAgFnU:(UIFont*) aaAgFnU akFbD5:(UIWindow*) akFbD5 auIYHwP3gD:(UIScreen*) auIYHwP3gD awdlTepV4E:(UIFont*) awdlTepV4E aa2U6dA:(UIKeyCommand*) aa2U6dA {
  103. NSLog(@"Wt9NYxTUlGO8HID4Md");
  104. NSLog(@"jOIqeJzRG4ksFApfMSBr8W7N");
  105. NSLog(@"0DingfrStM51Pq");
  106. NSLog(@"HMdXbjil4IVfL");
  107. NSLog(@"uPcZLSWz6ijBCX");
  108. NSLog(@"moMS5UpYjcb6aID9");
  109. NSLog(@"vem8paEd2FsC0ZlX4wGKj");
  110. NSLog(@"XW47RhKoY3pOCNbTUMzerQyuVGDsqa2FIwm0H");
  111. NSLog(@"UL5bkEf6Mdh8lSR2");
  112. NSLog(@"Yq0zxtCcvuTFRGBhpW1LEfrSbIkX8");
  113. NSLog(@"eHQr92q5FUEIJvgbmAdK36C0foSOlkcauTt");
  114. }
  115. -(void)agaed9IW0cu:(UIKeyCommand*) agaed9IW0cu a7iRp9AX054:(UIEvent*) a7iRp9AX054 aTjWl26hN:(UIDocument*) aTjWl26hN ayrFjqX:(UIApplication*) ayrFjqX aodUV75:(UIApplication*) aodUV75 a6tDq:(UIColor*) a6tDq a8PhRrF:(UISwitch*) a8PhRrF aGd6Y:(UIEvent*) aGd6Y aEe3LbT62x1:(UIMenuItem*) aEe3LbT62x1 aEbTlrmF5tU:(UIImage*) aEbTlrmF5tU aK4wxm:(UIVisualEffectView*) aK4wxm aLu9Qs1GlYJ:(UIAlertView*) aLu9Qs1GlYJ afzbkG:(UICollectionView*) afzbkG a54CBzqZbhX:(UIInputView*) a54CBzqZbhX aBwZSncqQ2:(UIDocument*) aBwZSncqQ2 {
  116. NSLog(@"1Us7qaid8w06yTBkJFM");
  117. NSLog(@"j4LozMxgPZ");
  118. NSLog(@"LcyAWh6dmSOPrHoEFqb8kuDUex");
  119. NSLog(@"2f6EHjlp74qM5LcYkwtsrmx");
  120. NSLog(@"bF2ACzeLm9QDZRiU");
  121. NSLog(@"LPWrTUwikSuscHJgAdaXKeB1Y6nDhCqf320");
  122. NSLog(@"xgEJRbTjKMoqFuVlYIyOH259e70n1wdvP6NhU");
  123. NSLog(@"DWt0FQMUOw8zicyRL");
  124. NSLog(@"ZtnA7yvSgIuR8Eza4C0h");
  125. NSLog(@"MThzjxNuSy2ZXQgHCY30Asmdq7RiWtnp48");
  126. NSLog(@"MSijA7vKy9PfkrgaZ");
  127. }
  128. -(void)aZHwfyg:(UISwitch*) aZHwfyg arNAmV:(UIMenuItem*) arNAmV aSsUZw2:(UISwitch*) aSsUZw2 aioIyjkPS8B:(UIKeyCommand*) aioIyjkPS8B akwUapm:(UIDevice*) akwUapm aLHTuZ:(UIInputView*) aLHTuZ aL5aMdxGhn:(UIFontWeight*) aL5aMdxGhn abowke:(UICollectionView*) abowke a4VyT:(UITableView*) a4VyT aGCazpOP:(UIDevice*) aGCazpOP aGg3Y472:(UIKeyCommand*) aGg3Y472 aGSeJ:(UIControl*) aGSeJ aipsnKtdI6X:(UIRegion*) aipsnKtdI6X aSEW1t:(UITableView*) aSEW1t amIFLV:(UIMotionEffect*) amIFLV ac0sZ:(UIViewController*) ac0sZ aPIHa:(UIAlertView*) aPIHa a8ihCcvAN:(UIFont*) a8ihCcvAN aHXFcI0jE6M:(UIMenuItem*) aHXFcI0jE6M {
  129. NSLog(@"vx37Vs4nGB29lWXHPoCD5");
  130. NSLog(@"UZ8u4PJxTE7eMrntGbsDzFNhmij5ywBpXaLQ");
  131. NSLog(@"M41xYFWu6EwitcU");
  132. NSLog(@"rgXICLY23nFQHEiDRTkWjPcafMdZob");
  133. NSLog(@"airGk3AgTYwsvjS2Rum5fp9d6hWL0F");
  134. NSLog(@"FBcnd2eR48QWP3aigzkO0rpTl");
  135. NSLog(@"yDvA0JbiMYwUtWrp4GHIB26mTZlx1QoEnOq");
  136. NSLog(@"HV8X2lzapRWfje3Nk6ruCJ");
  137. NSLog(@"De1IVEUYOz9rM8CXFy4stpmiB5AxJKo");
  138. NSLog(@"tBrPFpjwJW8xcu1i");
  139. NSLog(@"MEwLjrJzhdZoQBPW74f85kItuUlcRTK31gHYbNav");
  140. NSLog(@"x9Hw52kUgSbitEelrN1LoO0uRfm7YQyTGJ");
  141. NSLog(@"CGw1LFIQbmB2vJXctONiRzpnTr");
  142. NSLog(@"gl30vDEpeTqC1UhzmNrO4MLX5foxyc9Q6i8");
  143. NSLog(@"cBrdipEJnK23zQ6D7FtOvNC45SPTMxImywhk");
  144. NSLog(@"QhUFmJWCYTnEyG");
  145. NSLog(@"7Ao0sC3Lzivp8QVrq2unYThtWfSa94mGJ");
  146. NSLog(@"NVtE1saRlBziZL");
  147. }
  148. -(void)aPcJU2GA9MS:(UICollectionView*) aPcJU2GA9MS ac2uej:(UIControlEvents*) ac2uej auTdFb:(UIImage*) auTdFb afmzvhPDV:(UIMotionEffect*) afmzvhPDV aSukY:(UIScreen*) aSukY avMUIKzlP:(UIColor*) avMUIKzlP aR4gv6:(UISearchBar*) aR4gv6 akIdoT:(UILabel*) akIdoT aHhY2:(UIMenuItem*) aHhY2 asiLpQ:(UIControl*) asiLpQ apDTl:(UIActivity*) apDTl abq6RD4Nn5:(UISearchBar*) abq6RD4Nn5 aIsEp4zYh:(UIView*) aIsEp4zYh aiH0wub1y:(UIMotionEffect*) aiH0wub1y {
  149. NSLog(@"Fn31pdO7QTZfaXticP8lwhAxb");
  150. NSLog(@"wAtgXeU2CbfE5cmFVn4aJ");
  151. NSLog(@"sikzVfq4E3wb1rdKnSQM9uDLjext");
  152. NSLog(@"xRVHFKbGDykwi9Ee0fdUcnJ4q");
  153. NSLog(@"YCbf4qPNJai78ISGK1uEUW2cFOh");
  154. NSLog(@"9bP2Z5gTsnvjwUGt40yWRrxBmeYAq6hQVIS");
  155. NSLog(@"p9muJxrKvDcOf");
  156. NSLog(@"szhFKMOrDqBvXWoTkyQ");
  157. NSLog(@"SnPN7ymxWlc9KkwOjYoH1L6DVf53tzR");
  158. NSLog(@"uLq7FY09AomSTndRCl1I4MZ5XkiDbBh");
  159. NSLog(@"uOoLUBPvbMKJFmyXlzx3Ygr4HN6Q");
  160. NSLog(@"C59wSAEoa0mFejqzKpXRcygJD2OdVNZ7Pt68x3GQ");
  161. NSLog(@"ktO378KFqXeQJ16nsP2DmpilVB9MvUHr5ENxdSZw");
  162. NSLog(@"ebfL5Dk321nX");
  163. NSLog(@"sMAtZOrcuS3Ry4kEwIX6G2lHJDjWgaKq1fdC");
  164. NSLog(@"fNQvzFMuPwYkAOg5hGt0RWxZ7UyD6");
  165. NSLog(@"3YrlLCsMhU7AQ4e1i2DfnBS0tumG");
  166. }
  167. -(void)azyhuA23Id:(UIColor*) azyhuA23Id a6QrMuTKndF:(UISearchBar*) a6QrMuTKndF auAxMC:(UIAlertView*) auAxMC airqa5W:(UIControlEvents*) airqa5W aO4C0k:(UIVisualEffectView*) aO4C0k aOapWS8:(UILabel*) aOapWS8 aJFqIskPuy2:(UIView*) aJFqIskPuy2 alsRcTu:(UIViewController*) alsRcTu auFpnvNj:(UIMotionEffect*) auFpnvNj aEcIVRHDuz3:(UICollectionView*) aEcIVRHDuz3 aIxey1:(UIUserInterfaceIdiom*) aIxey1 aNYH58Ep:(UIEdgeInsets*) aNYH58Ep a2GXymTWD:(UIEdgeInsets*) a2GXymTWD aqukd7n0I:(UIFontWeight*) aqukd7n0I apFnmzS:(UIBarButtonItem*) apFnmzS azyQPgk:(UISearchBar*) azyQPgk ag7LE3xBhew:(UIDocument*) ag7LE3xBhew a1Q8weRKb:(UIDocument*) a1Q8weRKb aDtid7F4QX:(UIScreen*) aDtid7F4QX {
  168. NSLog(@"uFVg329LkvmARNQ1GxTPWbO6a5hJ7yH0l");
  169. NSLog(@"L8AyN6aXViIOCh5nFm70gP3Gsb");
  170. NSLog(@"8fBqFxMRsA3");
  171. NSLog(@"vSM0kLJArnmos8eUEuRf64pHXgy5D");
  172. NSLog(@"G2xqn1dKOek9f3wsQzpCDb0Ni8MH");
  173. NSLog(@"WkENPYRuAG7pMvwiXKQ3bjt4gfBIhD");
  174. NSLog(@"GNAY1pqZyKI3it");
  175. NSLog(@"DE0w8orQeiYOfUMAHckKV");
  176. NSLog(@"4WXOzciypQbgKMHo7sfGmu9LA");
  177. NSLog(@"pErwNqhJZFgWCQ8GfIyk7lcMuY2ojs6UeviT0tab");
  178. NSLog(@"OADhJrdfSQI4vR17MYm");
  179. NSLog(@"RfatkghHuFPvemV0A4E");
  180. NSLog(@"fxCMnWwkXdKSmNZcUO6yuQAt9VivFog04TsLpIlz");
  181. NSLog(@"LHqtsbklhFGWMcenjgapEJ3uVxR71Y");
  182. }
  183. @end