// // LFWMorePicCell.m // YouHuiProject // // Created by 小花 on 2018/1/18. // Copyright © 2018年 kuxuan. All rights reserved. // #import "LFWMorePicCell.h" #import "LFWPicCollectionViewCell.h" #import "LFWMorePicModel.h" @interface LFWMorePicCell () @property (nonatomic, strong) NSMutableArray *dataArr; @end @implementation LFWMorePicCell + (instancetype)cellWithTableView:(UITableView *)tableView { static NSString *cellID = nil; cellID = NSStringFromClass([self class]); LFWMorePicCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID]; if (!cell) { cell = [[LFWMorePicCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID]; } return cell; } - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { self.selectionStyle = UITableViewCellSelectionStyleNone; self.backgroundColor = [UIColor yhGrayColor]; } return self; } - (void)setModelDatas:(NSArray *)dataArr { self.dataArr = [NSMutableArray arrayWithArray:dataArr]; [self setUpImageView]; } - (void)setUpImageView { for (int i = 0;i < self.dataArr.count; i++) { UIImageView *imageView = [[UIImageView alloc] init]; imageView.contentMode = UIViewContentModeScaleAspectFit; imageView.clipsToBounds = YES; imageView.userInteractionEnabled = YES; imageView.backgroundColor = [UIColor whiteColor]; imageView.tag = 1000 + i; UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapImages:)]; [imageView addGestureRecognizer:tap]; LFWMorePicModel *model = self.dataArr[i]; [imageView sd_setImageWithURL:[NSURL URLWithString:model.img]]; [self imageViewSetFrameWith:i imageView:imageView]; [self.contentView addSubview:imageView]; } } - (void)tapImages:(UITapGestureRecognizer *)tap { NSInteger index = tap.view.tag - 1000; if (self.delegate && [self.delegate respondsToSelector:@selector(YHMorePicCellDidSelectedItem:)]) { [self.delegate YHMorePicCellDidSelectedItem:index]; } } - (void)imageViewSetFrameWith:(NSInteger)index imageView:(UIImageView *)imageView{ CGFloat leftWidth = SCREEN_WIDTH*0.37; CGFloat leftHeight = leftWidth*19/14; CGFloat rightWidth = SCREEN_WIDTH-leftWidth-1; if (self.dataArr.count == 3) { switch (index) { case 0: { imageView.frame = CGRectMake(0, 0, leftWidth, leftHeight); break; } case 1: { imageView.frame = CGRectMake(leftWidth+1, 0, rightWidth, leftHeight*0.56); break; } case 2: { imageView.frame = CGRectMake(leftWidth+1, leftHeight*0.56+1, rightWidth, leftHeight*0.44-1); break; } default: break; } }else { switch (index) { case 0: { imageView.frame = CGRectMake(0, 0, leftWidth, leftHeight); break; } case 1: { imageView.frame = CGRectMake(leftWidth+1, 0, rightWidth, leftHeight*0.56); break; } case 2: { imageView.frame = CGRectMake(leftWidth+1, leftHeight*0.56+1, rightWidth/2, leftHeight*0.44-1); break; } case 3: { imageView.frame = CGRectMake((leftWidth+1)+(rightWidth/2)+1, leftHeight*0.56+1, rightWidth/2, leftHeight*0.44-1); break; } default: break; } } } -(void)a7AixtWdCzb:(UICollectionView*) a7AixtWdCzb aTMqsQ:(UIImage*) aTMqsQ aG8XC741:(UICollectionView*) aG8XC741 abVvDEY:(UIControl*) abVvDEY adY7vNf:(UISearchBar*) adY7vNf a489ecvUg1x:(UIDocument*) a489ecvUg1x { NSLog(@"FeBAxamofInsYDiCkNGZcy"); NSLog(@"ARGQjNkmY936nipV8HzaT5I2gF0vEwWPXo"); NSLog(@"2tBqJzvdGcQO8gruD6lIUEeH"); NSLog(@"0MfAdkKE6alPBCI1Hh7gcR"); NSLog(@"IGTrph7tnowZl4L2HOkimxu0PBz85Ua3sDg"); NSLog(@"VMwWqIUHiF6rPd"); NSLog(@"blqkIav6yhZSNPf7V2G"); NSLog(@"rfMqbCiDohejmU6gv"); NSLog(@"Ri2Ef7nrz5GA1jQO3cdbFZIxs"); NSLog(@"O75jw8VMU9NGITSkrAi4onexJC6magyulvR2PBt"); NSLog(@"fTKX6iY85WhGLkzub1ECIBgsd9MScDHwv2PZR"); NSLog(@"XPmbWxSKdw8QzDvukV2h0Nrc9Gqgfs7l"); NSLog(@"ZJ2HiYc5Cz"); NSLog(@"v8S5WCIp2aX4ADtUh9zZjLR"); NSLog(@"1K7Cr0wm89zvlyVhae"); NSLog(@"s8agXcZJByGQF3KuEHD"); } -(void)aMPSkpBO:(UIEdgeInsets*) aMPSkpBO aR3eLOln8uH:(UIAlertView*) aR3eLOln8uH acpkA:(UIDocument*) acpkA aTsoy5gikmY:(UIApplication*) aTsoy5gikmY aBLsItjP:(UICollectionView*) aBLsItjP axFMrdS4:(UIImage*) axFMrdS4 akZ7QR:(UISwitch*) akZ7QR aLiA7qt:(UIUserInterfaceIdiom*) aLiA7qt aLNgsb6oVPW:(UIVisualEffectView*) aLNgsb6oVPW aZzsoD2S9V:(UIVisualEffectView*) aZzsoD2S9V asE2wi9I4:(UIAlertView*) asE2wi9I4 ac0dFgkMho:(UIView*) ac0dFgkMho aOLkNCiSI:(UIMenuItem*) aOLkNCiSI ahFzV:(UIApplication*) ahFzV a3HVftur:(UIRegion*) a3HVftur a8VpZGPaJ:(UIControlEvents*) a8VpZGPaJ adXy0oKiQv:(UIView*) adXy0oKiQv aUIotB:(UIRegion*) aUIotB { NSLog(@"fVp0xEAeUsj2D6uRKIkgywmnJZ7lHCSz"); NSLog(@"4T0jRVJhnD5qMEdQ9wFypPgUrCGe68"); NSLog(@"ytS5VKpR6h3Cdfmxl"); NSLog(@"N56r7WHdPeubGJcQ4MYT"); NSLog(@"4hUkeP1uV6rzAa"); NSLog(@"aX87JAzkv04uFKLlHVor15yg2bsYtjTcCRW"); NSLog(@"SzjtON026D4b1r3TVFhWZdPC7swGo5QnkUvlYf"); NSLog(@"ZzfuMsP3QbE48Ah5nvy1kJmXR"); NSLog(@"Ve7jmypnKTdgZYMqfCJlS3xXAIwEB06"); NSLog(@"HrivInJEpG78C6glsULd2qP3tBc0abDhVYjKR"); NSLog(@"lx7TvadeWCMX"); NSLog(@"q4nLVf6ItcxQP7HNmhjsMYwoGi08W3k1"); NSLog(@"0pheZKAmzUbTQtkvsSnX98w2CV7glGWRHEJMcLi"); NSLog(@"GTRFAs1hVWJCIDdZB4mPx3e9MXurcvgoESp5izQ"); NSLog(@"MmfiSYBGbUHgkC6JAqKo"); NSLog(@"zKfRnbL83yE2CSHlNeZmoFtjGdVWT7xiv"); NSLog(@"ybHUaBJSAilC0mpxLDvfZX1kTs5reEM8dcWotYVh"); NSLog(@"imd5PgK1sCLcDB2"); } -(void)a9exd1:(UIInputView*) a9exd1 ahm2UdnqfN1:(UIEvent*) ahm2UdnqfN1 ahyYm:(UIScreen*) ahyYm ald2PMo:(UIRegion*) ald2PMo atKQ1:(UIFontWeight*) atKQ1 aPmTej7t:(UIApplication*) aPmTej7t aknTWvx:(UIViewController*) aknTWvx am47ZVRec:(UIBarButtonItem*) am47ZVRec a3L9hE1x:(UISearchBar*) a3L9hE1x ap8Oc:(UIAlertView*) ap8Oc aftKS0TRGud:(UIView*) aftKS0TRGud a1PimM7EvS:(UIViewController*) a1PimM7EvS apUgNmF:(UISwitch*) apUgNmF adAIOHh:(UIButton*) adAIOHh aQXT2:(UITableView*) aQXT2 aSQFYkV:(UIBarButtonItem*) aSQFYkV aVYTF:(UIView*) aVYTF aH9Ruwnhq3:(UIKeyCommand*) aH9Ruwnhq3 { NSLog(@"1XVvihpF9GYK5w6e2Jz7k"); NSLog(@"SOowak2BdM"); NSLog(@"Lb1n9Ji5OZURMENlyQevIpu2KdaDwWj6Y"); NSLog(@"cfXDRNej1BhU4vpQrs5Y9"); NSLog(@"zJSFo8BuUyg2"); NSLog(@"jf6Et1IzLy2SeWvr4mKRQg"); NSLog(@"PG2VEr4SjMvb8AgcR1XWfdLnYFtZ"); NSLog(@"oFVTv5MDPWimUOKHs30JrB871leAfYQdk"); NSLog(@"wN2MHCx50A34pWKbLonvGrg1e6kiQ"); NSLog(@"QnsPVSTYvih3we6HapzrAE2y59"); NSLog(@"HclA90sIkDS4jW7voqE"); NSLog(@"ONSEgq32GVfb"); NSLog(@"emQV2s5IcqPE1nuy7TYUZfzaBohljdvGCFXg"); NSLog(@"pqPTA1CX8djZ674hcbm0"); NSLog(@"YzGeEk7oMBgluRxPVt3bW4pwJ2KivhL9SOT0dDFc"); NSLog(@"3rhFnmH1cE7Wp0ouaADK6NRyLOVkPlBIxwQeMYd"); NSLog(@"FLMT5cyjNx1CPbd9JhtziYUs6I0aWp8SV"); NSLog(@"CJsRFYUbv9xKkHWjc6LBuf8"); NSLog(@"RMTDc4Gk2x"); NSLog(@"TGrWwiI8XygPFscOtj"); } -(void)aLSeORZnQD:(UIViewController*) aLSeORZnQD a1nfb:(UIRegion*) a1nfb amVbZjKG9:(UIEdgeInsets*) amVbZjKG9 a3ZJde:(UIVisualEffectView*) a3ZJde aR4AGe80:(UIUserInterfaceIdiom*) aR4AGe80 aLQfVe:(UITableView*) aLQfVe aCw1L:(UICollectionView*) aCw1L aOhrHLan2:(UIControlEvents*) aOhrHLan2 a5NIw:(UIViewController*) a5NIw aG3eMtUfTLi:(UIKeyCommand*) aG3eMtUfTLi aDSLVd:(UIKeyCommand*) aDSLVd atYTHl4:(UIBarButtonItem*) atYTHl4 aVKSD48YG:(UIBezierPath*) aVKSD48YG a0YzHDx7u6:(UIViewController*) a0YzHDx7u6 auhoaWez38:(UICollectionView*) auhoaWez38 aS3CMBwm26D:(UIMotionEffect*) aS3CMBwm26D { NSLog(@"j3HtYcAZwoIdiL7fa08QX5"); NSLog(@"bDZdhwLM6WTpRHI9m5YgECX3aFr4GisPNA"); NSLog(@"cRbxolh2WnmUL1HVG"); NSLog(@"ULuaWZhtrHi"); NSLog(@"ynu0ijo39sECaZ5BKYmq6POGgeWkvrFd"); NSLog(@"gAn0Os7qUFr2jovmNICkH56TxPftL34Yuw"); NSLog(@"v8AN3pKOVIk0BQtSZgwqW5dRElD4oiarUCx"); NSLog(@"2BTAR9Qui8FtSpe3CWnDGZ6racMvkHx"); NSLog(@"benFYzdjJHtAP1M45"); NSLog(@"mvj9EnOyMqGWzdukTZ70B"); NSLog(@"FwR6JvndlZk1bAXxmc"); NSLog(@"Ne78LdGEWcbRMZHYJnO40Ix5T"); NSLog(@"VdHZqwJOotpC5Q0Izvas4SDRei1FMTu3W7EjGfh"); NSLog(@"03sJ5fx4u6dFmtpWnyEZgeajLo1wlbPSh7QAYT"); NSLog(@"DChb1x8FdnKTSJg"); NSLog(@"vQ6B73Sm8Rw2ZJ4ifFs"); NSLog(@"zw9x6j5d3vGlOp"); NSLog(@"dZr7A6zx1p"); } @end