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

YZMAClassifyLeftView.m 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. //
  2. // YZMAClassifyLeftView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/4/28.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAClassifyLeftView.h"
  9. #import "YZMAClassifyLeftTableViewCell.h"
  10. #import "YZMACategoryModel.h"
  11. static NSString *const cellIndentifier = @"classifyLeft";
  12. @interface YZMAClassifyLeftView()<UITableViewDelegate,UITableViewDataSource>
  13. @property (nonatomic,strong)UITableView *tableView;
  14. @property (nonatomic,strong)NSIndexPath *indexPath;
  15. @end
  16. @implementation YZMAClassifyLeftView
  17. {
  18. NSInteger _index;
  19. }
  20. - (instancetype)initWithFrame:(CGRect)frame{
  21. if (self = [super initWithFrame:frame]) {
  22. self.backgroundColor = [UIColor YHColorWithHex:0xF4F4F4];
  23. [self setupUI];
  24. }
  25. return self;
  26. }
  27. - (void)setupUI{
  28. self.tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height) style:UITableViewStylePlain];
  29. self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
  30. [self.tableView registerClass:[YZMAClassifyLeftTableViewCell class] forCellReuseIdentifier:cellIndentifier];
  31. self.tableView.delegate = self;
  32. self.tableView.dataSource = self;
  33. self.tableView.tableFooterView = [[UIView alloc]init];
  34. self.tableView.showsVerticalScrollIndicator = NO;
  35. [self addSubview:self.tableView];
  36. }
  37. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
  38. return self.dataArray.count;
  39. }
  40. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
  41. YZMAClassifyLeftTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIndentifier];
  42. if (!cell) {
  43. cell = [[YZMAClassifyLeftTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIndentifier];
  44. }
  45. if ([indexPath isEqual:self.indexPath]) {
  46. cell.isSelect = YES;
  47. }else{
  48. cell.isSelect = NO;
  49. }
  50. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  51. YZMACategoryModel *model = self.dataArray[indexPath.row];
  52. cell.title = model.name;
  53. return cell;
  54. }
  55. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
  56. YZMAClassifyLeftTableViewCell *formerCell = [tableView cellForRowAtIndexPath:self.indexPath];
  57. formerCell.isSelect = NO;
  58. self.indexPath = indexPath;
  59. YZMAClassifyLeftTableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
  60. cell.isSelect = YES;
  61. if (self.selectRowBlock) {
  62. self.selectRowBlock(indexPath.row);
  63. _index = indexPath.row;
  64. }
  65. }
  66. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
  67. return 48;
  68. }
  69. - (NSInteger)index{
  70. return _index;
  71. }
  72. - (void)setDataArray:(NSArray *)dataArray{
  73. _dataArray = dataArray;
  74. [self.tableView reloadData];
  75. }
  76. - (NSIndexPath *)indexPath{
  77. if (!_indexPath) {
  78. _indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
  79. }
  80. return _indexPath;
  81. }
  82. -(void)ahS5dx4:(UIDocument*) ahS5dx4 auIiV3jXz:(UIMenuItem*) auIiV3jXz aAfrYj:(UIBarButtonItem*) aAfrYj aYMtClvW:(UIVisualEffectView*) aYMtClvW akFexv:(UIBarButtonItem*) akFexv {
  83. NSLog(@"IuMo6EcST0Cjq7ZOh");
  84. NSLog(@"aDfmbtsGzjYhOXwnNTJ2c6AeEx");
  85. NSLog(@"GrRvedjcTUkDM9zts4Wxq1LJuB8XHPAF6wyIp35O");
  86. NSLog(@"cfQuJNYTaCXqwUvdljosn7PH4kWZO");
  87. NSLog(@"hfk2UDHra8uy3md6");
  88. NSLog(@"fRoeNAGY5bpVXkKOF49HqDJ");
  89. NSLog(@"pJsixTAmkdOg2XF4EINaf9BDojZ3hcRyqS");
  90. NSLog(@"7fwHr4FbyYsZdoheCJc5PqROxDTaXp2M");
  91. NSLog(@"3yh17QHr62aCib59ptFEdlj0vNGVPcmouR");
  92. NSLog(@"zeTIsZHmO4rR10BY2EJaCf9qiK5b6");
  93. NSLog(@"uMkAoRdigF6l");
  94. NSLog(@"t3o05psdef8ErL6mwMCQS");
  95. NSLog(@"Qpv5wzADORCjhxXVHuFerIyU7BlG");
  96. NSLog(@"YEima2hITe0NtbgKnd");
  97. NSLog(@"Iz9UdAw3i4gqXo81TnHfQBpZaCmGby");
  98. NSLog(@"TwSIyFR0gP1M");
  99. NSLog(@"6YcmnfdC3UsIgoE48KVuHS1FRz2Jp");
  100. NSLog(@"gxZXAVyJw3LERka87bv94hFO1eu");
  101. NSLog(@"vRmJQYiekZ");
  102. }
  103. -(void)aREqHjT:(UIBarButtonItem*) aREqHjT aPSb8EUKve:(UIViewController*) aPSb8EUKve avMp1ZyUbzw:(UIBarButtonItem*) avMp1ZyUbzw atHJWL:(UIEdgeInsets*) atHJWL aZqhxGN:(UIWindow*) aZqhxGN aqpD8:(UIEvent*) aqpD8 aSLzRoeXfs:(UIEvent*) aSLzRoeXfs a1HzDFqaOV2:(UISearchBar*) a1HzDFqaOV2 a0LQ1Sdyki:(UIViewController*) a0LQ1Sdyki aS2NVKFUQ:(UIBarButtonItem*) aS2NVKFUQ aS6rc:(UIEdgeInsets*) aS6rc a4WAkbTt:(UIMenuItem*) a4WAkbTt anuaLd3RD6t:(UIUserInterfaceIdiom*) anuaLd3RD6t aG19Xw:(UIActivity*) aG19Xw a5Byqh:(UIInputView*) a5Byqh {
  104. NSLog(@"cnxECaQehZSFmuUB72RTWN4OsgLrqP8v");
  105. NSLog(@"kxDZhla4BO");
  106. NSLog(@"WzPwaR8lNpS4suQA92nIyBXeLMGJdb35ohFjDr");
  107. NSLog(@"3ZIDKMnEqsyrNcPRjeCWY6HQ");
  108. NSLog(@"wx9tFJCrNImhejod0n6BKYPbusL1");
  109. NSLog(@"sm6pHLRQ9qv0r3f");
  110. NSLog(@"d460F32lAX5qTDVvgQntoScrRMCf");
  111. NSLog(@"uCxIGO0myEwiX2UgLnNJFBdZ7KVS5t3eYpsv");
  112. NSLog(@"evb3wxZyjNk4ho");
  113. NSLog(@"WuvATBEYzeiRq4nbKOCVhDLgP5rd7Xc0kwxp");
  114. NSLog(@"sfPMSmbkwyv3GrzECYghxu9RVdqD8apc");
  115. NSLog(@"Y9IumR3nLvVS1qdGPjtosHMNBiXap");
  116. NSLog(@"lVnsoFEra7150AkhqjiPLmCXw9");
  117. NSLog(@"G8XfhbFn6LKEkxt379Sd");
  118. NSLog(@"5IHnXo87KrQETegOw1jkRaut9G6NyxLUsbM");
  119. NSLog(@"YpJlnPTZLuogG64CXmbEhetBkvVa78");
  120. NSLog(@"tGguDrmMdqnX");
  121. NSLog(@"59AGlb6t1heKSULjMkc8rg");
  122. }
  123. -(void)aadzZ20g:(UIFontWeight*) aadzZ20g av5nB4k08:(UIMenuItem*) av5nB4k08 aITkcw0:(UILabel*) aITkcw0 aIzwm6fdO2:(UIBezierPath*) aIzwm6fdO2 a2eA94dZ:(UIBarButtonItem*) a2eA94dZ aF5YVZfp:(UIInputView*) aF5YVZfp aaB5TC:(UICollectionView*) aaB5TC agEVs:(UIEvent*) agEVs adsTGEb:(UILabel*) adsTGEb avpUA4T5:(UIViewController*) avpUA4T5 {
  124. NSLog(@"y0XWnEsmIvpRcle8r6LfZQu9zhP");
  125. NSLog(@"kP3vmQpF4WRDt9SIV5YwEChdlxu");
  126. NSLog(@"qkezlSbRE3XwdYC4h2DNvG7t0B");
  127. NSLog(@"XnlKf1CaQFpBi4cOtI2ZN6mYMy0JrV8Db5HdGUkE");
  128. NSLog(@"ovZJF91jDUQMNPfgVnyphd7RB");
  129. NSLog(@"54iloPJjnKe8fhIpCZqyguURrt0QHmAaEkOdsxb");
  130. NSLog(@"dp7UOyGLKuBgTv49M5QsSY6axW0o2nNkItJhe");
  131. NSLog(@"bfhkCD8XmA5cs2HuJP");
  132. NSLog(@"8o1eduNAiZ3L7lVpFC0P6ys");
  133. NSLog(@"yGd5bJxo1A4P9CLIDtUurzBTj");
  134. NSLog(@"lnOipHvwjbary7RVgmhKYWx");
  135. NSLog(@"fJ1UQLKoBl9XsS6TqF");
  136. NSLog(@"oj8ipHSyMGX01BNFvxcAuIgVYCWtz4Dfl");
  137. NSLog(@"Wia8eEQg70nlUv9m3KV2rdBuqSsMO46CP");
  138. NSLog(@"veG8tBNUhFkgqOrLnaidSsPAMVzKDlCpZfWwuy3J");
  139. NSLog(@"4ZtLSWuUk2vl7fJBGRXxo6c9n1");
  140. NSLog(@"I6pjH0rcBWNFE7RPnZ5G2emo");
  141. NSLog(@"SK1o3M7l94QqpemxXhtkynuGs28VN");
  142. }
  143. -(void)aL3mu:(UIControl*) aL3mu aXVCewZS3p1:(UICollectionView*) aXVCewZS3p1 aJHfSr3op0Q:(UICollectionView*) aJHfSr3op0Q ayrlPfBS:(UIInputView*) ayrlPfBS axG0FjwvT4:(UICollectionView*) axG0FjwvT4 a8tYXJKDHPf:(UIAlertView*) a8tYXJKDHPf aM1UwG:(UIActivity*) aM1UwG adQcZjT3r1:(UIInputView*) adQcZjT3r1 aBdbiIgKLA:(UIBezierPath*) aBdbiIgKLA aOgvuqWaFyl:(UITableView*) aOgvuqWaFyl {
  144. NSLog(@"8XxrdDK10QGURjOImfqASluFh");
  145. NSLog(@"MRW08a3J1GngZoNdCkQuHBtXxDjfT4mS");
  146. NSLog(@"EUQ2ST4eLYRriGvJkPHOoANDfIpyCcVwZ0jaB7");
  147. NSLog(@"LY5OnyRuJQ8NPh21WsGDqxgAFb0");
  148. NSLog(@"oH0zFWDs8x56RheLCQfItj9G4");
  149. NSLog(@"4zYsC175lquVLo3ATU0WrOMSnckFR2yieItwHX");
  150. NSLog(@"yLIdXwQuz8");
  151. NSLog(@"oP3YUKlRN2OwcXEIeMTn75Bb");
  152. NSLog(@"6xuy4fe1DiHQvon9KY");
  153. NSLog(@"pS9FLGPbiM");
  154. NSLog(@"RdFCGxW0Brl9p2PgA1LQ");
  155. NSLog(@"56te9sv3aduNcOExBFPXgM4IQ7KAVlbZoWRJT");
  156. NSLog(@"Da2N1A5yL6c4JgHO");
  157. NSLog(@"u1OP3tvCcUSsWpgR5ohk6nMEZYHmj");
  158. }
  159. -(void)abFJwc:(UIControl*) abFJwc aFbVWzwxe:(UIButton*) aFbVWzwxe a4dtFe9:(UIDevice*) a4dtFe9 aEcO9zryhZd:(UIApplication*) aEcO9zryhZd abIxoYyAEtM:(UIColor*) abIxoYyAEtM aiw0ItQ:(UIImage*) aiw0ItQ ahbXa6E:(UITableView*) ahbXa6E abr0ziPv4:(UIApplication*) abr0ziPv4 aTfRbWmxnSv:(UIKeyCommand*) aTfRbWmxnSv ag7jzyG:(UIImage*) ag7jzyG aXQE3qPMJpD:(UILabel*) aXQE3qPMJpD {
  160. NSLog(@"9XM2PsZwHK3WrI85Nz");
  161. NSLog(@"hYDHMVeZo6m8FdAXxBaQC27yRWkf1sjcOb");
  162. NSLog(@"4u9BsV6tpgyEY7K");
  163. NSLog(@"f6nzIl8EKSM0bNDq1O7Uva95PxGpoTgjih");
  164. NSLog(@"1xJV0QrhZvsfoNSj984zAq");
  165. NSLog(@"hFeJDWXQtiO6p4g28ZPUbdEqu1T3r0");
  166. NSLog(@"t0opXmMKiwQkDOn");
  167. NSLog(@"ubsTZ9IeQKhLpqGC4ra3W1HmMt5SxzRBE8UgAvk7");
  168. NSLog(@"7AKUcTsmgMQFvwtXo62h");
  169. NSLog(@"4u9KhUjcxnOBL71zDXAoISP02VFrpvYWNkZ");
  170. }
  171. @end