// // LZMClassifyLeftView.m // YouHuiProject // // Created by 小花 on 2018/4/28. // Copyright © 2018年 kuxuan. All rights reserved. // #import "LZMClassifyLeftView.h" #import "LZMClassifyLeftTableViewCell.h" #import "LZMCategoryModel.h" static NSString *const cellIndentifier = @"classifyLeft"; @interface LZMClassifyLeftView() @property (nonatomic,strong)UITableView *tableView; @property (nonatomic,strong)NSIndexPath *indexPath; @end @implementation LZMClassifyLeftView { NSInteger _index; } - (instancetype)initWithFrame:(CGRect)frame{ if (self = [super initWithFrame:frame]) { self.backgroundColor = [UIColor YHColorWithHex:0xF4F4F4]; [self setupUI]; } return self; } - (void)setupUI{ self.tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height) style:UITableViewStylePlain]; self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; [self.tableView registerClass:[LZMClassifyLeftTableViewCell class] forCellReuseIdentifier:cellIndentifier]; self.tableView.delegate = self; self.tableView.dataSource = self; self.tableView.tableFooterView = [[UIView alloc]init]; self.tableView.showsVerticalScrollIndicator = NO; [self addSubview:self.tableView]; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ return self.dataArray.count; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ LZMClassifyLeftTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIndentifier]; if (!cell) { cell = [[LZMClassifyLeftTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIndentifier]; } if ([indexPath isEqual:self.indexPath]) { cell.isSelect = YES; }else{ cell.isSelect = NO; } cell.selectionStyle = UITableViewCellSelectionStyleNone; LZMCategoryModel *model = self.dataArray[indexPath.row]; cell.title = model.name; return cell; } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ LZMClassifyLeftTableViewCell *formerCell = [tableView cellForRowAtIndexPath:self.indexPath]; formerCell.isSelect = NO; self.indexPath = indexPath; LZMClassifyLeftTableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; cell.isSelect = YES; if (self.selectRowBlock) { self.selectRowBlock(indexPath.row); _index = indexPath.row; } } - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ return 48; } - (NSInteger)index{ return _index; } - (void)setDataArray:(NSArray *)dataArray{ _dataArray = dataArray; [self.tableView reloadData]; } - (NSIndexPath *)indexPath{ if (!_indexPath) { _indexPath = [NSIndexPath indexPathForRow:0 inSection:0]; } return _indexPath; } -(void)azjbhStoDm0:(UISwitch*) azjbhStoDm0 an8LOs2:(UIWindow*) an8LOs2 aAtm1:(UIColor*) aAtm1 aU2XnstLW:(UIBarButtonItem*) aU2XnstLW aCerYZthm:(UIAlertView*) aCerYZthm aCQIdN:(UIRegion*) aCQIdN aIOyuZq2tj:(UIViewController*) aIOyuZq2tj aMLHaGyOU:(UIDevice*) aMLHaGyOU aGgcA80:(UIBezierPath*) aGgcA80 acboi:(UIBezierPath*) acboi adVpyr2:(UIInputView*) adVpyr2 a69TMeREW:(UIRegion*) a69TMeREW aN4ymr:(UIButton*) aN4ymr { NSLog(@"cK9TsrEPnVIy3vJ"); NSLog(@"pAu3RVzjrh4"); NSLog(@"8hCEgPz23uobTactn0sBKD4AeR"); NSLog(@"biorzyDvjRE1eks5HaVImlO8P9fpw3LJgWKGYdNq"); NSLog(@"7S5KIVNB1Hgj6"); NSLog(@"scqjkHhdUei0Xyt2bvL3I"); NSLog(@"5TgHxcwqvfineD9XBI3R4KCyZ1rFNUPu"); NSLog(@"Rc1gzIOvroUytMphK7H"); NSLog(@"qFr6UY1jB4tMdebnohs"); NSLog(@"lDJY86kbCG"); NSLog(@"Nav7TQJokUfLlAc6g39PmIW01xhqiSs8Fu5bpy"); NSLog(@"0LQHuZjYfEUwP1Kn5Il"); NSLog(@"mEWyr2hpIG7lqKSjT45ox1s69P8DQZgULtF0"); NSLog(@"fwYg7SEaqKrvjekO1T93cGsApHJXImWh"); NSLog(@"lkvLRis79Nu6rB3KaZ"); NSLog(@"fCyurzHqSdbQZ"); NSLog(@"fYSt2uc4Ko9QZVankxO1hqJG8PzUeENbLpdAlg"); NSLog(@"F8IjZQ6XRKOlz1gEJVrdhSq3CAeBcHakpwMt9"); NSLog(@"v2jwxLe18ipfdsyqY56tkuPQEoHzBn"); } -(void)aGYl3birB:(UIViewController*) aGYl3birB aHeUFC6c:(UIScreen*) aHeUFC6c andugyYI:(UITableView*) andugyYI a8GbI:(UIView*) a8GbI aqRTfWK4lVL:(UIBarButtonItem*) aqRTfWK4lVL aYO4G:(UIEdgeInsets*) aYO4G awsBQPWz:(UIEvent*) awsBQPWz av5JM:(UIView*) av5JM aK2PS:(UIMenuItem*) aK2PS aILKvZb:(UISwitch*) aILKvZb { NSLog(@"5fHnMaJF4i3ELzsxrUVZD1cdYygT0KhGlt7"); NSLog(@"HWcdweTNbZ9RhEBOICYqguQUzVP6xm2kKs04tM8A"); NSLog(@"BDiUgQ4xcrq1"); NSLog(@"jv0IGQ5waSK"); NSLog(@"7D28TtLSjEY3luH0wQsIONcF9vW5fGJ"); NSLog(@"52clW0ODB98a3jU4oisrzFYfhNHMJE7PwL6"); NSLog(@"kKfIdWEFHoT8Vv0ri7ZqwN6xSj"); NSLog(@"mNd6go1aeB0CO74JcQPxDzS3y2hURLlI"); NSLog(@"o6HVyuSsfqt"); NSLog(@"M43XIAqs7ztf9U6wxO01vPGaunCDe"); } -(void)ax0kXSL:(UIWindow*) ax0kXSL aN6XxrpCS:(UIColor*) aN6XxrpCS a6ZzdYu:(UIWindow*) a6ZzdYu a1trTbkBSV:(UIImage*) a1trTbkBSV aAzxI:(UIMenuItem*) aAzxI ansBMLQ:(UIAlertView*) ansBMLQ aBSJKnUeL:(UIDevice*) aBSJKnUeL aH8qVI:(UIBezierPath*) aH8qVI aixbMwyJN:(UICollectionView*) aixbMwyJN aus9UgXzYCw:(UIMenuItem*) aus9UgXzYCw aqfd7CB:(UIControl*) aqfd7CB { NSLog(@"qbjdlTUpfgoCMVYhOsz"); NSLog(@"zCgUyVp0JBLQldrvW6Htm1ZGFaqK"); NSLog(@"Pjh6uIXnNYEQzCerHLpGxUV"); NSLog(@"mlwTGHO87cE2jqishWDvCAZMB14"); NSLog(@"ylUqY0WgsPt6o1mp8fFJzDi73a5"); NSLog(@"58WVoalRBYcezG4QCvZ2I"); NSLog(@"WPaQrULY9b8iBt2vDn5ORk0"); NSLog(@"WYMN09kzdjygoAZGalFv"); NSLog(@"0DyMAQea2gikf8VGz6qml5nFZEW1swc4X9SL7K"); NSLog(@"dm4f9LHnMVIeawA1W3SuYCjrcsg0GRk"); NSLog(@"9n6OmtoP3qpYKfSXVzQFrvjhcbGdeIMygDR1UaN"); NSLog(@"SxefRy8bADCZUNdP5WBHJ3"); NSLog(@"kSYPrvqpoMgF2c0RxE94QtD3NLbn6WyZOudsI"); NSLog(@"5RoBL0J1kgNxFr"); } -(void)aBAUtTJcvYC:(UIMotionEffect*) aBAUtTJcvYC a9AI6OdsgL:(UIEdgeInsets*) a9AI6OdsgL aViglX1:(UIWindow*) aViglX1 aiHfdu4m:(UIImage*) aiHfdu4m aNztCPJVu5U:(UIApplication*) aNztCPJVu5U a6PfWk:(UIApplication*) a6PfWk aYSgmJQh:(UIDevice*) aYSgmJQh aYMoHu4q:(UIImageView*) aYMoHu4q a18easZR9MF:(UITableView*) a18easZR9MF aRsX3dNK:(UIVisualEffectView*) aRsX3dNK { NSLog(@"9oTEhLJrgewDX4nKu617IPvj2BF5Yf3M0"); NSLog(@"wpsIamtkiVOSR2Y4g9QWvryXjHToUx"); NSLog(@"ZeT9UvHNxE"); NSLog(@"IJrX9sfYPR7yH2xeVLc1vuCMUnbBwlQhWTEg"); NSLog(@"K7GndWtapESTRrc"); NSLog(@"P5cfEiMYrGJBVZuKCN3ly"); NSLog(@"hjBVb4NnpsgePCfdizr78Mq51U6xml2WokQYv"); NSLog(@"eGliK1VjpHY"); NSLog(@"amHBQtS0ZD8oNwYAvE"); NSLog(@"zcALf4IKMESU6O8hZNViGDr1dnbomgYe"); NSLog(@"C7TW08xLQUkMByDuVYRcIZHh"); NSLog(@"lgSN9TirE6LKMyktjbC852"); NSLog(@"q6JbetOTZ8lyrsLRd2P4VKwaDcQAYE3Izu"); NSLog(@"NOdaStXU75KIvy0o"); } -(void)aQPUFg:(UIActivity*) aQPUFg adIwJisH:(UIWindow*) adIwJisH aL73doBWz:(UIViewController*) aL73doBWz aEdqTlpOf7:(UIApplication*) aEdqTlpOf7 aChkoe:(UIApplication*) aChkoe azDMFAky:(UIMotionEffect*) azDMFAky aeMzf:(UIEvent*) aeMzf aybW8K9:(UIInputView*) aybW8K9 aDIC830:(UIRegion*) aDIC830 aZQsed:(UIEvent*) aZQsed afzT4A:(UIUserInterfaceIdiom*) afzT4A { NSLog(@"ULlDBWrAk7"); NSLog(@"YDcTIjHhsBqLXi7Zadm8"); NSLog(@"BM2aorvq6tO1FPc4fYxLp7SD5khi"); NSLog(@"z2lGtWmfpSchQxVY9CO"); NSLog(@"nxX983s2VekbZG0OuIWhyjTL"); NSLog(@"ZBTzbJFLtcsIfr23qmeaMDoHuVxgy6v4YC"); NSLog(@"xvhlXd9eCwTKtLfz3"); NSLog(@"aKxqtB0kyCXEQrFjV3"); NSLog(@"nyEKOA4BNpT"); NSLog(@"yrtqiK7CNF4moLegGlIP3SX20"); NSLog(@"05hesfAkHxTdvtEyrJiQz7USM9D3KaqRIg"); NSLog(@"vK5MAlSkHUyFi6RL9wfqzeaWOxtCITsJ1QjV"); NSLog(@"j5iOWBxL1odcqglCIHEvfPRem08p"); NSLog(@"fBAWHea58yiv4rlwkUdJs1LpSM6VxbnjT3tOYcqD"); NSLog(@"7egFyuDEmA5XrvL4d"); NSLog(@"ZB57v8xF3sHfmbu"); NSLog(@"2IrJx6yRHZKevoCbniwNLjp5d91EDqQ7Gkh4WBA"); NSLog(@"5OFkJsHmGEjdXbLC"); } -(void)armcw:(UIUserInterfaceIdiom*) armcw aCTjB65ak:(UISwitch*) aCTjB65ak aSBm2M:(UIControlEvents*) aSBm2M a8FW4dk5EG:(UIFont*) a8FW4dk5EG a5mKs:(UIKeyCommand*) a5mKs a5ubHNJgB:(UIDocument*) a5ubHNJgB aiXGpv6LrsO:(UITableView*) aiXGpv6LrsO an7RsIeYZjp:(UIImage*) an7RsIeYZjp azHTlYS:(UIMotionEffect*) azHTlYS aYmPz6i1QRa:(UIKeyCommand*) aYmPz6i1QRa aa31AuE0:(UIColor*) aa31AuE0 a9ONHa:(UIKeyCommand*) a9ONHa a1deucYw:(UIMotionEffect*) a1deucYw { NSLog(@"AosNMhZtx9Hf7eS3vgaUkmOrPzG514ubIB"); NSLog(@"6mYU4yWQ0rFTSOjiwsMhIlcHNK5p"); NSLog(@"P57hgX32JzTwVb4QqlixafWZ"); NSLog(@"TnyapJGc5oxL7dtg18BwmhIQZVkNeir"); NSLog(@"dSG5MjWV4DPYkbyXOxf2JBzmT8qw0FiCA"); NSLog(@"rzwZXis58jlnFxWPV"); NSLog(@"N8JrHFGcs50kijoPZEt3vudypUfYXIa2LA6"); NSLog(@"mref8UnNkg42zubCVjWHdIOGht0qcMpoFyP1QiBX"); NSLog(@"ASV4m71jgpJvB9sTdYHaNwLxROXh"); NSLog(@"tgBIybuQVT9"); NSLog(@"qnBHr5MUzVYkSdQPL"); NSLog(@"uzZ1qOl6oJAFVf47"); NSLog(@"9T8zZHW6NrSu"); NSLog(@"r3yY9sVxtXaDdqZvMmR"); NSLog(@"SYiKwDqe5gk6f71j3TMnlIA"); NSLog(@"iepGXF9T1Saku56"); NSLog(@"BqHW2yTjkmV0X91g5YPRZebw"); NSLog(@"QsWFkecl4KPm"); NSLog(@"R7zlQW0KfaCDkxdNZiGpP"); } -(void)anYUP:(UIDevice*) anYUP a8T3RN:(UIKeyCommand*) a8T3RN ayWAMKLZlEB:(UIUserInterfaceIdiom*) ayWAMKLZlEB ahx7oqCiIW:(UISwitch*) ahx7oqCiIW aVbAh70HpJ:(UIDevice*) aVbAh70HpJ afUbNeI4Kaz:(UIViewController*) afUbNeI4Kaz a9DqHZ:(UIKeyCommand*) a9DqHZ aq0InCP:(UIMotionEffect*) aq0InCP aRm3enGwOH:(UITableView*) aRm3enGwOH aFYMfHUA:(UITableView*) aFYMfHUA { NSLog(@"jrLxTd2f0epGlZCXSD35NEzbtOn6o9WqkI"); NSLog(@"xWPpZnLkIv2lesVGTmNBoU5iwYJE"); NSLog(@"VlMXWyfUvi5Dk0ntd4TFxjsJZo3N91YPwrBGqOA"); NSLog(@"8Bw3IT5YK0PdJL9WfEecb"); NSLog(@"wXIhLF704JYtSbHj19fAQTZsrpPkM5RKqy2"); NSLog(@"XADKNpiYhBSHtuVs6IkEewWCg"); NSLog(@"hKV5mOSvb8sjAFCRoanPD76XNWxEwykd"); NSLog(@"e687YH2FhuyZ4TWjiKS0dGnp1JNEI"); NSLog(@"eLuTctPaAU3SQiyWm9qpGIrFE4n5ZOKvf71"); NSLog(@"OlbHFX067eVN9rncJmLtah"); NSLog(@"NXZ4lxkTeqiQWgs"); NSLog(@"84Iue5PwXofhSQyn"); NSLog(@"eJVMnL8TjoA"); } -(void)abiA10Q:(UIControlEvents*) abiA10Q aEQBg5z:(UIImage*) aEQBg5z aqhSz:(UIMenuItem*) aqhSz aqBaJP:(UIWindow*) aqBaJP a1HR3PMn:(UICollectionView*) a1HR3PMn axS1haU8T:(UIApplication*) axS1haU8T aHApqfoRg:(UIEdgeInsets*) aHApqfoRg azxONs7rE:(UIEdgeInsets*) azxONs7rE a5MR072:(UIKeyCommand*) a5MR072 akBh9bZr:(UIAlertView*) akBh9bZr aOxW3BhMzRv:(UIImage*) aOxW3BhMzRv aCQniRWfNK:(UICollectionView*) aCQniRWfNK ah0OjDu:(UICollectionView*) ah0OjDu aqhn986DIm:(UIVisualEffectView*) aqhn986DIm aKzX89Q4F:(UITableView*) aKzX89Q4F aANac48MKg:(UIBezierPath*) aANac48MKg aZqy8Y3ej:(UIDevice*) aZqy8Y3ej aYs2RJ8:(UIDocument*) aYs2RJ8 aG0jWSoEYO:(UIColor*) aG0jWSoEYO aVuljb:(UIMenuItem*) aVuljb { NSLog(@"JihBVlr5jAR"); NSLog(@"ZQnRmGFuTl3kKArDHg47zf"); NSLog(@"zGSyOm6jWJAnHUb4Y7Fh3i"); NSLog(@"O97nr5HYaeUPjbZ84s0KA2Cc1BW"); NSLog(@"VaAeUdPZkBvh3TcE0qmLtbrXfDKgQuJi6lwnRx7p"); NSLog(@"LC7YIxlQ5piTwA"); NSLog(@"AiweqnFOBUxQoTcGYafd6Cu1SHXZ"); NSLog(@"4KeTu1XqfktE0DQCiw"); NSLog(@"Y5JuUiy2wnt6S"); NSLog(@"ebjoFLnfV5OgH8wqik"); NSLog(@"bUJZ35CuO8Gt9r"); NSLog(@"IhEXwgTP6at9e5dsb7A2QRNnGkZSWYicMDlv"); NSLog(@"z3L7cDq4kWKtuFPZm0bJEXje"); NSLog(@"Hg2li5KqSwzAaWDyukT3jVBGNXd9cp"); NSLog(@"36ds0gZPcbUCXWYAvx"); } -(void)ajO2btiU:(UICollectionView*) ajO2btiU axG0CYkfUEp:(UIBarButtonItem*) axG0CYkfUEp aqD0WQZ:(UIWindow*) aqD0WQZ asc2naF8x:(UISwitch*) asc2naF8x afAyVtxW:(UIVisualEffectView*) afAyVtxW anrR8mA:(UIScreen*) anrR8mA auo30h:(UIAlertView*) auo30h aBQZf:(UIVisualEffectView*) aBQZf aKwhz:(UIMotionEffect*) aKwhz ah2iecU:(UIBarButtonItem*) ah2iecU aQHIjfsnv:(UIInputView*) aQHIjfsnv { NSLog(@"ZxhnE3Ck2Fys0qJlTDuAb4z1ILcBaXm"); NSLog(@"Id7AmJrnqU0Mgs"); NSLog(@"xMJoVser3Aqp2NFu9yP4EaH7kD1lBZnwUXQSRWv"); NSLog(@"TKsIa1wubfCQZg38LXyF"); NSLog(@"npjTISD8zbRfCx3i0ocrgLyhmOadF594lJAvE"); NSLog(@"UK7qNOMXye39tavsDf"); NSLog(@"8t5BwixqGOl4SzdNyHLEZRrkfWa6C30uoAIUK"); NSLog(@"ELntmuBhUxfRJOrgPyq"); NSLog(@"HVROk908DLWTXMzG7UlqBph5nvIwaxJtc6"); NSLog(@"AmgktIaWHc0n6UNCX9v2b"); NSLog(@"T6JZfSMK8ay5O07NgEbt3Ydh"); NSLog(@"ryhLYbCtj4WcD6sqSiV1fkXl3v7pKE8"); } @end