123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- //
- // YZMAClassifyLeftView.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/4/28.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "YZMAClassifyLeftView.h"
- #import "YZMAClassifyLeftTableViewCell.h"
- #import "YZMACategoryModel.h"
- static NSString *const cellIndentifier = @"classifyLeft";
- @interface YZMAClassifyLeftView()<UITableViewDelegate,UITableViewDataSource>
- @property (nonatomic,strong)UITableView *tableView;
- @property (nonatomic,strong)NSIndexPath *indexPath;
- @end
- @implementation YZMAClassifyLeftView
- {
- 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:[YZMAClassifyLeftTableViewCell 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{
- YZMAClassifyLeftTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIndentifier];
- if (!cell) {
- cell = [[YZMAClassifyLeftTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIndentifier];
- }
- if ([indexPath isEqual:self.indexPath]) {
- cell.isSelect = YES;
- }else{
- cell.isSelect = NO;
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- YZMACategoryModel *model = self.dataArray[indexPath.row];
- cell.title = model.name;
- return cell;
- }
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
-
- YZMAClassifyLeftTableViewCell *formerCell = [tableView cellForRowAtIndexPath:self.indexPath];
- formerCell.isSelect = NO;
- self.indexPath = indexPath;
- YZMAClassifyLeftTableViewCell *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)aBCodfc:(UIMotionEffect*) aBCodfc af40Vemwp9g:(UIImageView*) af40Vemwp9g aZ53x:(UILabel*) aZ53x aqVyclrZ:(UIViewController*) aqVyclrZ avJSlRXK:(UIBarButtonItem*) avJSlRXK aRqepK5uU:(UIUserInterfaceIdiom*) aRqepK5uU {
- NSLog(@"OhPAiRkjbeIno3vwTJyKM8rSaQLsW1cCpg");
- NSLog(@"A3D48Fyp7dvjtBnQWOMbTJqXIlrs");
- NSLog(@"g3QN5kxS6UPu0hjvlnCA4BOyHFWptLiJYdq");
- NSLog(@"1ux2ZLFqhOpNd40lQSYH");
- NSLog(@"RAV1PZja9O7ghzrtKkTSHWNXL");
- NSLog(@"cFg9QK1a7BZkxprfSXsVHbOt");
- NSLog(@"wNogjvOUHCrLsJWzZ0u");
- NSLog(@"hQjKdvtgHnbeDEcUFwC8sB");
- NSLog(@"FNLvlT7e20o");
- NSLog(@"yeUAzXL4JvNfrIn5RoZbd67wxYQF");
- NSLog(@"8eKbf5tZ9GC4uw7BHn");
- NSLog(@"LjyAMvec2VdiaD7K1uUBzN9FbWRq5CpkQmwJlng0");
- NSLog(@"bIyZ6NGirlgB0YRnPmfkAXVpJ");
- NSLog(@"aP5H1pIgLX2BUqifNWr7VYwE6SZcxbMk0y3");
- NSLog(@"QYXfeb54r0hPyt9CJOvpF");
- NSLog(@"UCl80OnvRHPkuZofA9J");
- NSLog(@"H0BDK2quFiLZ1jYhkcvCmd");
- }
- -(void)ayxRj2JiAno:(UISearchBar*) ayxRj2JiAno aVohYj:(UIMotionEffect*) aVohYj aKrDGp:(UIEdgeInsets*) aKrDGp aNlfrXTPGC:(UITableView*) aNlfrXTPGC a7fXok2:(UIView*) a7fXok2 aRLT6XxuB3d:(UIVisualEffectView*) aRLT6XxuB3d aspwPagm9M:(UIKeyCommand*) aspwPagm9M adfGXF7:(UIAlertView*) adfGXF7 aSVwW:(UIViewController*) aSVwW aJVZo:(UIButton*) aJVZo a5Rot:(UIActivity*) a5Rot aGxjt3q9Lb:(UICollectionView*) aGxjt3q9Lb aljb2v1s59m:(UIEdgeInsets*) aljb2v1s59m ag1wfGFxWsE:(UILabel*) ag1wfGFxWsE aSQJh:(UIKeyCommand*) aSQJh aaPt9kB125:(UISearchBar*) aaPt9kB125 aEIyGVLY2W:(UIFontWeight*) aEIyGVLY2W a6iIFXUnC:(UIControlEvents*) a6iIFXUnC ahr1Al2KV:(UIBarButtonItem*) ahr1Al2KV aeJu2LK:(UIFont*) aeJu2LK {
- NSLog(@"Wh1kIKxfEntszcbeDVaTyGLUYdQC");
- NSLog(@"RVKyObwYqFpPa25ENczuo");
- NSLog(@"x30mLyAr85p9voXsbjJEzWOCtKhD4leTiuSR");
- NSLog(@"Zrx0HKduMnJSA7BPDRphtsqTk4V2ja8m");
- NSLog(@"1bWxOrPQCn0pF8lVYtL9TMsgJKDeZu");
- NSLog(@"7rofVzmXcwJ");
- NSLog(@"QSrVJOnN6CDalABwIjRUMuiLqYdck539y");
- NSLog(@"AP2GTMrwe7D08yWz5aVXR");
- NSLog(@"7EtOswUYXQHfkhdM");
- NSLog(@"2aUy6lebRvWHwGz");
- }
- -(void)aXMnsAEKu:(UIButton*) aXMnsAEKu aysUdO5h:(UIColor*) aysUdO5h agNXB:(UIViewController*) agNXB amGxy1WZw:(UITableView*) amGxy1WZw aNgUA:(UIBarButtonItem*) aNgUA a8ivYR:(UIControlEvents*) a8ivYR aWPmR9c:(UIMenuItem*) aWPmR9c aHSj7dah:(UIControlEvents*) aHSj7dah aJnVvLBrTqN:(UIApplication*) aJnVvLBrTqN {
- NSLog(@"GeT8drCFhOVZyjAw3fXDxlK1HnpBU5gNL4MzQP");
- NSLog(@"Rky5Yu0scbMxreminNW");
- NSLog(@"w96OL2pmY84VuZRranBvxASX");
- NSLog(@"jENazfv0WIqMohPRGdxJ2cKXgt");
- NSLog(@"CRakQMmV7OnKe6ZG");
- NSLog(@"4K9U6JdHp2BFZb8vENf3rXxPDyc0CGahWueL");
- NSLog(@"Z9eJotm1ITwXkvNHCzjxf6bqO");
- NSLog(@"Mvxdz3N0UBwlGYnVXfkchWseF1");
- NSLog(@"G35HAZDzQh1YSWnejlV4iLdfo8EFBtMvKg");
- NSLog(@"aLYwitk9Kpm3eVg7QPTJWvClcnSz");
- NSLog(@"PgJQGS9oCNBiAMz7xhHtr5es3L");
- NSLog(@"sp9aO4x3N8TX75kRybZGtWCVQH");
- NSLog(@"cHzXyCqrP964ZbkST3jxg");
- NSLog(@"lBjJz7h6GAynqvDVobFg");
- NSLog(@"ytX7gYzPqowK84I");
- NSLog(@"2pXxcakHStg8VMRT7CrhIjfAZ");
- NSLog(@"DhOnaLPRSwbzkAUB3HZNemtfcXy");
- NSLog(@"o0bOCpVwqWTI35ERs7ulniK6JaUhF");
- }
- -(void)aNfPgiRwx:(UIMotionEffect*) aNfPgiRwx aOC5VDeq3:(UIDocument*) aOC5VDeq3 axV59FH:(UIControl*) axV59FH aKv85S2:(UIVisualEffectView*) aKv85S2 adSb8VNjCq7:(UICollectionView*) adSb8VNjCq7 azqPl:(UIKeyCommand*) azqPl aVN8IBhs:(UIView*) aVN8IBhs adHTutJK:(UIControlEvents*) adHTutJK aLK6b1XT5M0:(UIColor*) aLK6b1XT5M0 aYRIyZkmDH:(UITableView*) aYRIyZkmDH azUQStq:(UIScreen*) azUQStq ameBxl:(UIImage*) ameBxl aphcnT2y6:(UIViewController*) aphcnT2y6 aqyuBJPv3e:(UITableView*) aqyuBJPv3e {
- NSLog(@"FfEZDYIQrV1MRqS");
- NSLog(@"je5frTgoXcAyC9hSsG");
- NSLog(@"BHX9ZpCihWu2");
- NSLog(@"MzlKRTJ25XkBAd0DEycYC4xoSvWgeNuIUtHGiV");
- NSLog(@"KQ51YdLgCcWkHP8");
- NSLog(@"wsApKbkm2i6vnjPtLcIJgr1GoV8ZeYXO9HT7S43q");
- NSLog(@"ex5qZP8WlTg1w");
- NSLog(@"iU89yPHWTEkd4X51fbpJr");
- NSLog(@"PqQxRnV4HKhzcsFbXag8AUZv0r9oGIw");
- NSLog(@"F9nXbZta3GErvoDV");
- NSLog(@"yzSf2kgGJRKEaAVZeO8TNjBYqnM3QmstoUpl");
- }
- -(void)aS8PG:(UIMenuItem*) aS8PG aeEJxusDAI:(UIFontWeight*) aeEJxusDAI a6riahECST:(UIImageView*) a6riahECST aoipmdsvUYM:(UIEvent*) aoipmdsvUYM a6jxsLlFhb:(UIBarButtonItem*) a6jxsLlFhb aUIBz:(UIImageView*) aUIBz a1mL4CIsbw:(UIFontWeight*) a1mL4CIsbw aZsVL:(UIInputView*) aZsVL aH8U2TJ6:(UIControl*) aH8U2TJ6 am97TPE:(UIViewController*) am97TPE aSy8Urm:(UIDocument*) aSy8Urm a2OsIjQX1:(UIEvent*) a2OsIjQX1 apnmTZlefVX:(UIView*) apnmTZlefVX {
- NSLog(@"vqOWz8U4FEhHjPNoCkBusfKd2");
- NSLog(@"vNRpg6fsa5zUX9tj4KxQrhS2umFVCqbY");
- NSLog(@"lBAMgVZ0RPx8rvKfLE3mT");
- NSLog(@"5AF7Oo1Vv9ZTsGQzMywU0lp");
- NSLog(@"sfmr7FvdyULTg2a3xj1uC80ZMNio4O5");
- NSLog(@"8HbMogrTApeX4GNzKUjDQ5Sqs2l6");
- NSLog(@"XCJTm9oeKZtnMRD6rSGVNu8c3Lbj1lkswUfiWy5");
- NSLog(@"WHGmAaTIRzu0");
- NSLog(@"5Svw0mTyp6tsN1lhDfQjJ3a79oVqWHYPF");
- NSLog(@"Cp8EaYM0gHUrqIzB39bw");
- NSLog(@"mh0zIjdQL5Pn9vVt");
- NSLog(@"k9lN2mV4taIS8bPpUjuA1MheY0r6dncXFqx");
- NSLog(@"ueVzqXA8joMHLkdlONZ5RwryE1WQhKxT2pP30");
- NSLog(@"CokpKDPSnN9MLtFbxa2sHifVXQ17evuJOB4Iq");
- NSLog(@"6Y52T4a0dziVKxtRoD");
- }
- -(void)aDbYEqMKJCg:(UIControl*) aDbYEqMKJCg ao8kP03sS:(UIButton*) ao8kP03sS aPgMN9sy:(UIScreen*) aPgMN9sy aO3TeWA5:(UIFontWeight*) aO3TeWA5 aRzbTKaBG9:(UIVisualEffectView*) aRzbTKaBG9 adNoUKvFCYS:(UISwitch*) adNoUKvFCYS aoCt35qr2:(UIEvent*) aoCt35qr2 {
- NSLog(@"5N1SFxJ6gLkbnC8sGXHQY4vz2TjeW");
- NSLog(@"81rlxi5Ue3mFhLOQM06z7HkqdoJvt4ZAVGCKfn");
- NSLog(@"PclfGLF4MI0KtnNQwyBbTOzWXVZjaYhSkU7");
- NSLog(@"gZDVETJPWaOCSjleFu");
- NSLog(@"sCq0udRKXx8rJMeUNn9oHaVWYj");
- NSLog(@"16APnVUWiIs5bL2hK8dxeyTjuYRESHcq07Dp9");
- NSLog(@"n1bmJdvcX3OMoiYjGBNzfuZq7sSyxg9lrE");
- NSLog(@"8flK7zsTSOqFRwN231Z0EBMm");
- NSLog(@"Ml2aqJOC3RxQ1rEjyZmoDkY4dsP6wTGANKucgn5");
- NSLog(@"nUq8bVXftJzOwFAmIHpri3udgGBMEhWPlysvQSe1");
- NSLog(@"2pvIdY7X5SC4TbFzV");
- NSLog(@"ZhXKipt4V0nRPjkydOqUe5");
- NSLog(@"VCd2pXbr4qON6U9");
- NSLog(@"3xnDZp572RPCSmyjGtX8");
- NSLog(@"1RVQ06x5OTEoAMe93b4Cmj");
- NSLog(@"aDcwiZ1BqNb");
- NSLog(@"2Kz5eDyfUtQlqwZhTSGHgW73COIdnY9A1o0c");
- NSLog(@"xXUYZJc6iCwtWRQfnL");
- }
- -(void)aVC0zf8jk:(UITableView*) aVC0zf8jk ayhwY5s:(UIWindow*) ayhwY5s aNkmui3W9Q:(UIInputView*) aNkmui3W9Q aR3cBsL5qo:(UISwitch*) aR3cBsL5qo aNwvXl:(UIActivity*) aNwvXl ajDr6SLcoV8:(UIFont*) ajDr6SLcoV8 a5XTsmMQ8:(UIColor*) a5XTsmMQ8 aM7xv4N2wDB:(UIEvent*) aM7xv4N2wDB a20kyJOF:(UICollectionView*) a20kyJOF ayqacY:(UIColor*) ayqacY aP4nK:(UIScreen*) aP4nK ajZvs:(UICollectionView*) ajZvs apJrgw4QR7:(UIUserInterfaceIdiom*) apJrgw4QR7 aGWkh6:(UIButton*) aGWkh6 aQxGA0TBj:(UIMenuItem*) aQxGA0TBj a4fzvJ:(UIBarButtonItem*) a4fzvJ {
- NSLog(@"4tdCzTJ51VU9hFeIX");
- NSLog(@"dAIcmpHNgM");
- NSLog(@"AakQnX47ptiFWIsYC6Pm");
- NSLog(@"rSj0G8guW6cinvhlkxFUYHp");
- NSLog(@"LyVmbM6dgZI4x5XzFlE0cTautJsr");
- NSLog(@"QaPnFYMvzX4o");
- NSLog(@"ApclDf5aesdk0");
- NSLog(@"ctrZn6wx2Gk7C");
- NSLog(@"KSW35QxoyPcNCGwX2kZY");
- NSLog(@"GgdKLZokSO6tf4yzMeDCI3lPvj");
- NSLog(@"q8BvuLpcUjWwCHD5K43skyToalnF6N7JxZ");
- NSLog(@"cXQUh5DY4q3orwHns2xGJbej9FS7yPEpR");
- NSLog(@"N7t9Va0oIM5hBbZ");
- NSLog(@"kpRldnjIoGg56Z1WKuLhm2x8ONrEza7yDJUTYSH");
- NSLog(@"GCgNewXd4EbI8QYOtlMWjrDcSZv0piaVfK3Jz");
- NSLog(@"TnfVMqu9hN");
- NSLog(@"JiT4CcE8shvwGRFoVXNzjtSxLq5QWM");
- NSLog(@"fHNKshTuYBDA4y68WcJvMnweILO9gz5l");
- NSLog(@"M0Vuc38L2mEAydZ4lhbPHoIwsYpxQ");
- NSLog(@"W8e4n9H20ZRqQLiCbzIAkcEPOvth1pfx3D56Gu");
- }
- -(void)a2Yd57LE:(UIUserInterfaceIdiom*) a2Yd57LE aIWxt4L:(UIWindow*) aIWxt4L al1vuCS0y6:(UIApplication*) al1vuCS0y6 aySorpA9BQ:(UIMotionEffect*) aySorpA9BQ acvfAhp:(UISwitch*) acvfAhp akFoJWuT:(UIMotionEffect*) akFoJWuT arOGqw:(UIMenuItem*) arOGqw apwkm:(UISwitch*) apwkm akhaKRgils:(UIBarButtonItem*) akhaKRgils ak3v21iQ:(UIApplication*) ak3v21iQ avryZa:(UIImageView*) avryZa ank43:(UIControlEvents*) ank43 a9ILAUs3C:(UIRegion*) a9ILAUs3C ayz8Rx9Iw:(UIEdgeInsets*) ayz8Rx9Iw {
- NSLog(@"fB6OAWXmEb");
- NSLog(@"zovxCtp8i1MXqUQdDSefGHTIP6cn");
- NSLog(@"rybD5hzGEv96");
- NSLog(@"zmcsUWdhu6BgFkR9ElfYe5aA0nwN3y8XMTI");
- NSLog(@"tnoSDcEv3r0VjqAL5HPaXlFMkWumg7w");
- NSLog(@"d0xoCG92Wk7rHUjpTz56Xy1OtSaEKl");
- NSLog(@"LN0a3mjx7QziosgkTZC9YX");
- NSLog(@"65RwGF0dpOiNanD8e74JrBvCEolsLmU");
- NSLog(@"0C9FxsMaTSB5");
- NSLog(@"mKrQjUGokfvPSuRl0E");
- }
- @end
|