// // YZMAMessageListCell.m // YouHuiProject // // Created by 小花 on 2018/5/21. // Copyright © 2018年 kuxuan. All rights reserved. // #import "YZMAMessageListCell.h" @interface YZMAMessageListCell () @property (nonatomic, strong) UIView *bgView; @property (nonatomic, strong) UILabel *dateLabel; @property (nonatomic, strong) UILabel *title; @property (nonatomic, strong) UILabel *desLabel; @property (nonatomic, strong) UIImageView *arrowIcon; @end @implementation YZMAMessageListCell + (instancetype)cellWithTableView:(UITableView *)tableView { static NSString *cellID = nil; cellID = NSStringFromClass([self class]); YZMAMessageListCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID]; if (!cell) { cell = [[YZMAMessageListCell 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.backgroundColor = [UIColor YHColorWithHex:0xf4f4f4]; self.selectionStyle = UITableViewCellSelectionStyleNone; [self initSubViews]; } return self; } - (void)initSubViews { [self.contentView addSubview:self.dateLabel]; [self.contentView addSubview:self.bgView]; [self.bgView addSubview:self.title]; [self.bgView addSubview:self.desLabel]; [self.bgView addSubview:self.arrowIcon]; [self.dateLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(10); make.top.mas_equalTo(14); }]; [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(10); make.right.mas_equalTo(-10); make.top.mas_equalTo(39); make.bottom.mas_equalTo(0); }]; [self.title mas_makeConstraints:^(MASConstraintMaker *make) { make.top.mas_equalTo(15); make.left.mas_equalTo(15); make.height.mas_equalTo(24); }]; [self.arrowIcon mas_makeConstraints:^(MASConstraintMaker *make) { make.width.height.mas_equalTo(24); make.right.mas_equalTo(-18); make.centerY.mas_equalTo(self.title); }]; [self.desLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(self.title); make.right.mas_equalTo(-15); make.top.mas_equalTo(self.title.mas_bottom).mas_offset(5); }]; } - (void)setModel:(YZMAMessageModel *)model { _model = model; self.title.text = model.title; self.desLabel.text = model.message; self.title.textColor = [model.is_view isEqualToString:@"1"] ? [UIColor YHColorWithHex:0x999999] : [UIColor YHColorWithHex:0x333333]; self.desLabel.textColor = [model.is_view isEqualToString:@"1"] ? [UIColor YHColorWithHex:0x999999] : [UIColor YHColorWithHex:0x333333]; self.dateLabel.text = model.push_at; } - (void)isRead { self.title.textColor = [UIColor YHColorWithHex:0x999999]; self.desLabel.textColor = [UIColor YHColorWithHex:0x999999]; } #pragma mark ----- - (UIView *)bgView { if (!_bgView) { _bgView = [[UIView alloc] init]; _bgView.backgroundColor = [UIColor whiteColor]; _bgView.layer.cornerRadius = 6; } return _bgView; } - (UILabel *)dateLabel { if (!_dateLabel) { _dateLabel = [[UILabel alloc] init]; _dateLabel.textColor = [UIColor YHColorWithHex:0x999999]; _dateLabel.font = [UIFont systemFontOfSize:12]; } return _dateLabel; } - (UILabel *)title { if (!_title) { _title = [[UILabel alloc] init]; _title.font = [UIFont systemFontOfSize:16]; _title.textColor = [UIColor YHColorWithHex:0x333333]; _title.text = @"热门爆款"; } return _title; } - (UILabel *)desLabel { if (!_desLabel) { _desLabel = [[UILabel alloc] init]; _desLabel.font = [UIFont systemFontOfSize:14]; _desLabel.textColor = [UIColor YHColorWithHex:0x666666]; _desLabel.text = @"福建阿附近阿克苏金卡价撒蛟龙卡聚隆科技"; } return _desLabel; } - (UIImageView *)arrowIcon { if (!_arrowIcon) { _arrowIcon = [[UIImageView alloc] init]; _arrowIcon.image = [UIImage imageNamed:@"more_acc"]; } return _arrowIcon; } -(void)a5Z0C:(UIUserInterfaceIdiom*) a5Z0C a5Z4U0:(UIFont*) a5Z4U0 aNjwepqg:(UIAlertView*) aNjwepqg aig6F:(UIView*) aig6F aOEcGC:(UIEvent*) aOEcGC { NSLog(@"w6MoL4hVXB1GlpjA"); NSLog(@"a0EVxgzrAGIF8s3D"); NSLog(@"koKSwZLsMWTUqiP"); NSLog(@"mvUPXgQIGRHzS81nMaD6fAydklepb9"); NSLog(@"eIlNgEMinCmdKZr8jyJRL9skh6a"); NSLog(@"owNSn9HlpU3QGuhT"); NSLog(@"erN0nwID9Hf2mJAlkpZ"); NSLog(@"8UcgtCNi4QudZWxJfLE7Po6Gn5wH2h0zsI"); NSLog(@"cks5pDnMAtIxCmeYQGgSL0TbPNU37EFy2iKroXf"); NSLog(@"RakJ5yZVQnfqxw"); NSLog(@"FeMmqWSraliQxud2ONVLvK49ZwIP8p"); NSLog(@"Y2USoV8fztMyg0X9hckO3nqxE"); NSLog(@"6sIKJ3EhvVf75jgAWCHqePNGn8lFbOQ4uL"); NSLog(@"ViztXyuEYS4wUked9Q"); NSLog(@"o1WBuxd4cQqbYG93KTNAH"); NSLog(@"6vsajimZYzHG2VE8OqDbJKNucQxhB5eFn7gSML"); NSLog(@"rsAeUNLzgvhQdu3y8"); NSLog(@"Fo3NRCduSLJblVQ7"); NSLog(@"eoQFd6TM9i81L54Ojh"); } -(void)anPmgp8t:(UIButton*) anPmgp8t a39RJL2rEKt:(UIControlEvents*) a39RJL2rEKt afc10AuG:(UIControlEvents*) afc10AuG a2f4jGkZV9o:(UIKeyCommand*) a2f4jGkZV9o ahfGrwq:(UIFont*) ahfGrwq agG6JKN:(UIBarButtonItem*) agG6JKN aMkOj:(UIViewController*) aMkOj atS3zsnOdm0:(UICollectionView*) atS3zsnOdm0 atamnGp2rWZ:(UIDevice*) atamnGp2rWZ ansOLuWE:(UIControl*) ansOLuWE a1mpd:(UIRegion*) a1mpd aimRt0hDSU:(UISearchBar*) aimRt0hDSU aSnLb6CwIz:(UIRegion*) aSnLb6CwIz aZw8ks5hx:(UIButton*) aZw8ks5hx a5RoI:(UIBarButtonItem*) a5RoI arUGs0wj:(UIButton*) arUGs0wj aIgjDepmN:(UIFontWeight*) aIgjDepmN a2UJB3e:(UITableView*) a2UJB3e aHAwkGCs:(UISearchBar*) aHAwkGCs { NSLog(@"EuhL86c1nKkDjzw"); NSLog(@"p1zs0d7gAGqw9iXRBFQV"); NSLog(@"fPrYjJkZBbTG7cF15E0qpsU8S"); NSLog(@"GIkXazN8xptgdB1cuJoHWe2AZ3n5UbCwF6MR9vl"); NSLog(@"ovXjtBEi7xFe1DaG8dUYrpOCP9MLSz2KyIHNnl"); NSLog(@"CSQ6f0y2ie1bdxt5gpKMEIs9m"); NSLog(@"5hnYCNUK19DQep"); NSLog(@"CB5gam6UyNTjGz0ps3rQ"); NSLog(@"VLvmAlZeXI4i2y7czDbkfwSWpa"); NSLog(@"2sjqDMCwBt95o"); NSLog(@"ZyJ6TefYzF"); NSLog(@"1LE3ZYkvhyOniBCq0djQoW"); NSLog(@"xJONtACdGL4VWb"); } -(void)aAcXeQS35:(UIVisualEffectView*) aAcXeQS35 at7qNJVD:(UIImageView*) at7qNJVD a84kdzH:(UIControlEvents*) a84kdzH a8sGw:(UIDevice*) a8sGw aaDV7JROo:(UIImageView*) aaDV7JROo akcn5B:(UIBarButtonItem*) akcn5B aNXvZ:(UIMotionEffect*) aNXvZ a5Xn9a4NSk:(UIWindow*) a5Xn9a4NSk aiJC24t:(UIVisualEffectView*) aiJC24t aidmbH:(UIApplication*) aidmbH a1v9plW:(UICollectionView*) a1v9plW aCREO3s:(UICollectionView*) aCREO3s ab8IG:(UIColor*) ab8IG aQ1IXzg:(UIActivity*) aQ1IXzg atED6S:(UIMenuItem*) atED6S aJGbLa5:(UIMenuItem*) aJGbLa5 aGdRj:(UIControlEvents*) aGdRj aYcEFB9lmp:(UIKeyCommand*) aYcEFB9lmp { NSLog(@"ktyZKCR6rMG3JbxWunXwIFY"); NSLog(@"wfEt4Rcpga85x7KYDUFriI2"); NSLog(@"o6d8NwbnvLRHlyZEs"); NSLog(@"2nShfsmRb8"); NSLog(@"UVXzNt1yj6woKbGcnEi5YTphDOmkR3q4fICZ"); NSLog(@"bWiKUDlJOjMvXnQ4N"); NSLog(@"LCJd2RwAf8HecQ3snPErl164MxiZ"); NSLog(@"hFzsX8KU0lpM7m6ynEAabJ5HdktRC9NZcfIBSx"); NSLog(@"OoE1rn3SfyzvhcPHkZCp2T"); NSLog(@"mVhJIcvnNMe7yq4L96C2a1Rksd0fUAXlWTor5bE"); NSLog(@"r5tQneK2NvIiDLm83ZVhYp9CH"); NSLog(@"RXhigv6HUQOG3eM70Vjpta"); } -(void)awqla5pRuJ:(UIViewController*) awqla5pRuJ afML5Aga8h:(UIImageView*) afML5Aga8h a0P6TO:(UIEvent*) a0P6TO aW1q7EwXrN:(UIApplication*) aW1q7EwXrN artlFD6eSJ:(UIEdgeInsets*) artlFD6eSJ a0p8bFy:(UIDevice*) a0p8bFy a9MuFybBwC:(UISearchBar*) a9MuFybBwC awe6V:(UITableView*) awe6V aMiJn0Px8W:(UIControl*) aMiJn0Px8W aWsEhX:(UIBezierPath*) aWsEhX aJlA0IyLZ:(UIMenuItem*) aJlA0IyLZ aec0f:(UIControl*) aec0f { NSLog(@"NS6Q0KHF3b1UErZeomMcgjDaGW84fA5qlYndzI"); NSLog(@"3Y7JcGepH5PZ1Rd"); NSLog(@"Um5fPRQgLbiwyalkODMzx3h9EXN"); NSLog(@"dpImjqMSFyHaiQBJC7W"); NSLog(@"OhJFmvSDLT"); NSLog(@"IGP3wSnRxW0yFUXJq"); NSLog(@"cvljQiguEMamw6ZH8eLh9RodTSb30BF7C"); NSLog(@"bsXg7T4KxZeSyipDlO6A5jo2"); NSLog(@"mafDAuCJoqZreU"); NSLog(@"HRcrM8YSQFI6so3Gz"); NSLog(@"Gp5WlgFTB4AD"); NSLog(@"HThvznJcVMDeq53x0KWy"); } -(void)a3YeOdCJx:(UITableView*) a3YeOdCJx aDHG1l0Zn:(UIBezierPath*) aDHG1l0Zn aNQw9hype7:(UIActivity*) aNQw9hype7 ab9yw:(UISwitch*) ab9yw a8cj1Sye:(UISearchBar*) a8cj1Sye aRJQDkIBhEZ:(UIKeyCommand*) aRJQDkIBhEZ ax68itN:(UIBarButtonItem*) ax68itN { NSLog(@"aVAqYI4X2vRWMtuE19UZrs"); NSLog(@"AQC0wgyxi8Pon7YpfTZG"); NSLog(@"HsWkp2DQSzdX9eFb5taCvnYloAgfZKiyUcImx16"); NSLog(@"Y2fJgUAzk3h57L8SqMnO"); NSLog(@"y6wpsSb3MOJKN5LQvAxFIXkYDonaEdGPhl0rimt"); NSLog(@"HVohUO2zsqWL3QFM7wG8a6e5mvk1iKBTn"); NSLog(@"rcKd9sVf16Ji"); NSLog(@"vfaAWQ1MjhSs"); NSLog(@"sznehM4xyJVoQEbIUD5Yq32g"); NSLog(@"17defWiE0CzKBj9sG4Oymr8RYXwAl6F2pIUJL"); NSLog(@"c0y1oNKI8PBmHJ2VzteQMnAhXTSjp4YRqvO7f"); NSLog(@"W6dRyxw14vO5LEaAFop9cPgIGmStJ8biNT0z"); NSLog(@"ZqfGUlDh6c8CHXvIp"); NSLog(@"kHwp1UYF7Qrs8zD45IEgLcBKMPTN3m"); } -(void)aZtA0O5oJ:(UIImage*) aZtA0O5oJ aRp9gd0YA1:(UIImageView*) aRp9gd0YA1 a5QdAsU:(UIBarButtonItem*) a5QdAsU adgcH1:(UIScreen*) adgcH1 aWoPK3:(UIFontWeight*) aWoPK3 { NSLog(@"OhZGRc1qiDFtvIjQ5Yrl04yP2HWXf3sek7A8"); NSLog(@"4kr9TUJYVEjZiRhyGBtgowz0S2Cx56sdbW"); NSLog(@"tUnQoSWz2MY6BCawy1deO8RsZlxc"); NSLog(@"b75xM9lVDcNEds4GaY"); NSLog(@"sDTXwtkyjOobJmYcalu4M"); NSLog(@"GuWOgDNRzXyhc360HwPSZM52"); NSLog(@"jLJBPA9c2rF6ekI4vKp7Xhda"); NSLog(@"FGlL4MnEhfWC8vyu"); NSLog(@"lmpYFruiTW4ty0I1H"); NSLog(@"gyXARU8NMiq7BpCvVnlzTQYmjatWcPb45xHh9Su"); NSLog(@"Mo17xpAR3L"); NSLog(@"AlIuTNQ8pOsrCVyHxL90ZEfo1i"); NSLog(@"vftnmFSewY04NVpJE6xUXAk7"); NSLog(@"DcU1l03rNkzdiVwLCoAvKF9TSb"); NSLog(@"wREXKv7FmoQP4JqbGCfl1AHOsTzW"); NSLog(@"huJ69dk5sS7jwayH1r"); NSLog(@"jTRluIktFGP0z3b7WSpo4fxY6VQyB"); NSLog(@"nqs5MiN0cStYm9Cv8ufh2kLAJ"); NSLog(@"CFI0a1o7zQ6AkxWM5SZmXNLwJqvudHPD2Y3cKptT"); NSLog(@"p5hr6gGukVbKIUFXY310aHo9Ced"); } -(void)ai3bcsKgeR:(UIButton*) ai3bcsKgeR acProIJvkNH:(UIImageView*) acProIJvkNH agRGBO:(UIButton*) agRGBO awYeb2Fr:(UIColor*) awYeb2Fr aDRhu56QLn:(UIWindow*) aDRhu56QLn aIaK31zs4:(UIUserInterfaceIdiom*) aIaK31zs4 ae6i7rHlhjS:(UIViewController*) ae6i7rHlhjS aMjLONKrH:(UIFont*) aMjLONKrH arS4b5g1m:(UITableView*) arS4b5g1m aTBJyu:(UIInputView*) aTBJyu aE9NcAq:(UISwitch*) aE9NcAq anVeArWQc3:(UIBarButtonItem*) anVeArWQc3 alUS8YhsrZ:(UIMotionEffect*) alUS8YhsrZ anw9gaQM41:(UIEdgeInsets*) anw9gaQM41 aIADPKl62:(UISwitch*) aIADPKl62 aW5sN7iRc:(UIApplication*) aW5sN7iRc aaOyqNeiG:(UIMotionEffect*) aaOyqNeiG a6Iw25:(UIAlertView*) a6Iw25 akNrDOilhL:(UIImageView*) akNrDOilhL a4hKpuQEGg:(UIDevice*) a4hKpuQEGg { NSLog(@"HIwjzA57F3pbyYUR6vGN"); NSLog(@"Q1Jqv9bRh6CLu"); NSLog(@"WGeRK142sgUzTro87fjH5aDScMVmb6tq"); NSLog(@"TP61oKGAnuQ3ziXyZ49sqIkdV8v"); NSLog(@"oOrUaFRDu8z"); NSLog(@"wsWy9oD3GnTUZFi0dfPIBpJrb2qz8MLEu4KSj"); NSLog(@"Fg6xpJKonPNBAwICqEGD1QWcL"); NSLog(@"DQcjvfliYO3X21FhdN4ATPMrREunSxaB5"); NSLog(@"M1fp8mtCNruydFnH6jhaw7RQsDk5SGU"); NSLog(@"O5HWV4AkCQGNB7dbSMycZ0uPjqx3hImYa6z"); } -(void)aYFNlskxc:(UISearchBar*) aYFNlskxc an3OihLlFW:(UIMenuItem*) an3OihLlFW aIuAMUy01aR:(UITableView*) aIuAMUy01aR aX8kDmV:(UIImage*) aX8kDmV amzMK:(UICollectionView*) amzMK aEuS4wNkB:(UIRegion*) aEuS4wNkB alVnehKMksx:(UIBezierPath*) alVnehKMksx aIW9pCV8:(UISearchBar*) aIW9pCV8 aWRIqBD0FQ:(UIImage*) aWRIqBD0FQ a7dcBlJMQ:(UILabel*) a7dcBlJMQ amadHQg:(UILabel*) amadHQg aGqHNTXRycC:(UIFontWeight*) aGqHNTXRycC atnclhNg1u:(UIBarButtonItem*) atnclhNg1u aj9OUZr:(UIViewController*) aj9OUZr { NSLog(@"vYXE1Gno3brsatqTMOyIwKx6hJuH2lRA5kBS"); NSLog(@"qheAGnitBo9KwvFd602"); NSLog(@"LGHXTBy9i3Sj"); NSLog(@"zA8FCsjp4fDQ"); NSLog(@"XtB7odLnlcVa5mgvhqKYMS"); NSLog(@"QyUAgRKJ6ZpuSk0Gaf3EirXN47OhqMWvH1mLC85B"); NSLog(@"Zuf9cyb4oRKk0HBVwiWxjtMNnXlQpF13dAr"); NSLog(@"aZHwhs4gp6q5cd7OkeQy8CNMX0xDlU"); NSLog(@"cjSxAMqIaiZ0nW6CKsRmyEfXtLe3O4vNY"); NSLog(@"5h63KrRYGB8EOZwy9WPSa7bfJT4eHjv"); NSLog(@"kgtMKSX4xm0RdojJ2TubOzC7"); NSLog(@"2MZpr8aLEQY"); NSLog(@"xgDXReFJfdAwq"); NSLog(@"vsUWC6uydOGz7cr2wxEj5nHlQmIiBA0oX1qD3e9"); } -(void)aDyq6hui4wO:(UIWindow*) aDyq6hui4wO aNEWDb:(UIDocument*) aNEWDb aLRzq:(UIMotionEffect*) aLRzq aCO0iFvstW:(UIMenuItem*) aCO0iFvstW aBGfeJmu3:(UIUserInterfaceIdiom*) aBGfeJmu3 { NSLog(@"KBSpolCQxgk5UMTjz"); NSLog(@"9JFgVnWl12bGaqvz"); NSLog(@"UR1lcKDrjkA7PuLXpT"); NSLog(@"GFWg2fzl3ivmpUr7V1jOKEwHyBdCoDLS"); NSLog(@"xfbZs3STFKl7neRp8qoryCMGtOhmDzIBi5LUacW"); NSLog(@"Z8MSQ7kIR3bupeo6sgOimcnCUEwdWKjBXAHTF14"); NSLog(@"0OgIwDvdB1XKEVNPk4iAzJc9q3F8bLrnQh6ZSW"); NSLog(@"Wg9D0BQZjFsfAS4ebOoR1Yc5GxdN7P"); NSLog(@"OP1ARj38eDLVZSEhcHWMuBwpxk6mJnyUYioq"); NSLog(@"1nYpmqQcZAe"); NSLog(@"QT35mqPfCJl49WDv"); NSLog(@"O48SsefXylhDLnR0uWYacFHrwj"); NSLog(@"oEts3wKUj42PNF8aD"); NSLog(@"Ywe6afXuGPJzCWoHOh0ANkFBMSTlpi"); NSLog(@"qszU7xSG1T8m"); NSLog(@"DzsPvy0bpoStOK2ZJ"); NSLog(@"9viXL51fskCr4BaDg7REZcyd8nhSlm0HO"); NSLog(@"HetrsKkyOR2"); } -(void)afMCZY2:(UIUserInterfaceIdiom*) afMCZY2 aVoQby7RBPS:(UIDocument*) aVoQby7RBPS aT1wd:(UIMotionEffect*) aT1wd aLdSx:(UIMenuItem*) aLdSx aYiAjrX:(UIControl*) aYiAjrX aqwz7j6KOci:(UIColor*) aqwz7j6KOci { NSLog(@"aiBN9JvCG6m"); NSLog(@"ipbs5TMehYaOK720ujB8f69VkCWPt1Gznml"); NSLog(@"Y1u4bJti2McALwmdTN"); NSLog(@"m0soJrLN3TfnDSHK2YRlwMtp51vVkQZFBiI4UPaE"); NSLog(@"oTmrRHnxJNvXt3dIPS1B0wO5AVQ94M"); NSLog(@"DlJSMe5VHdsWnc7UAB80ax4TkvNhmyp6"); NSLog(@"NuVgTMX95Bfx3iKUG"); NSLog(@"Hwei0YGxUPQjb"); NSLog(@"GBtqcoWxM6ykKVdUmvP5Qz"); NSLog(@"q31FURprgX9E2kHDwJ"); NSLog(@"7gjsqc2fQ4k9oLn"); NSLog(@"FJamOUKno32jxpPWL"); NSLog(@"dRpy80xMFoa"); NSLog(@"1g7cVRM85OJhSvfC9x"); } @end