123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- //
- // LZMMessageListCell.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/21.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "LZMMessageListCell.h"
- @interface LZMMessageListCell ()
- @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 LZMMessageListCell
- + (instancetype)cellWithTableView:(UITableView *)tableView {
- static NSString *cellID = nil;
- cellID = NSStringFromClass([self class]);
- LZMMessageListCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
- if (!cell) {
- cell = [[LZMMessageListCell 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:(LZMMessageModel *)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)aAkVX1:(UITableView*) aAkVX1 a25wDg:(UIMenuItem*) a25wDg awvEWMD:(UIApplication*) awvEWMD ao0pJhyLaMW:(UIBezierPath*) ao0pJhyLaMW aq9UXEPFTxG:(UIColor*) aq9UXEPFTxG a5sfmAWZ:(UIBarButtonItem*) a5sfmAWZ amVguQjUn:(UIActivity*) amVguQjUn aBRAPe:(UIMenuItem*) aBRAPe {
- NSLog(@"SFtuYHs7bim35qMIgl4KwvdWnaT6Az");
- NSLog(@"vDg8ozqJUltw");
- NSLog(@"ru0qFxEBIh4QRajibMfgLUcz1dv");
- NSLog(@"Xry2tC8HZJeh");
- NSLog(@"SwnZrAEpcFBQOlVLIqx0vkKMRYaNheWGbC2g");
- NSLog(@"J95LkFQquH21stT0zcWCx6lNYbKRZByDM4v3h");
- NSLog(@"aTByRW1fumtOGbZLA7JpVsU843vCxiwjD6S5zF");
- NSLog(@"nQlbYXVTigmMW0yNApHU7SfBoFLvPx15");
- NSLog(@"GMQkDaLnHiC7x3yu1USbeIBF9");
- NSLog(@"BpShg8yCqbZ4TcxnNQMaeizwPUOV297JD1AljYI");
- NSLog(@"WLkEfgbcRGuw7hsnoSM3VCTF0");
- }
- -(void)auJgjT:(UIInputView*) auJgjT aPaNZ4:(UICollectionView*) aPaNZ4 a2VS1uyTn:(UIRegion*) a2VS1uyTn aFLudTHacx:(UIControl*) aFLudTHacx aJ3AS9KOBGm:(UIBarButtonItem*) aJ3AS9KOBGm a8csQkP:(UICollectionView*) a8csQkP aSz3C9pLc2:(UIImageView*) aSz3C9pLc2 aCVDFytzRJ:(UIButton*) aCVDFytzRJ acsgSHWFqO:(UIInputView*) acsgSHWFqO aFm9OJe:(UIFontWeight*) aFm9OJe aEZyrIWS2oC:(UICollectionView*) aEZyrIWS2oC {
- NSLog(@"MCrwlupmYNAGLeKtfU9RVvWDJSI");
- NSLog(@"EzAxVLPQgMi58DYsjFhl6Ot7JvI4W2omXd1");
- NSLog(@"hru63FM0Hti2WCU4nBDfZ9ROLPjQpz5K1bek");
- NSLog(@"kxBZsNciKmO1T0o75t");
- NSLog(@"RY8fhPr1o5zncibJkTeAsdvHXxGyuWU2m");
- NSLog(@"9AgQC3uBZtT4LPWaYGJ7E6h1IXmeRoklv");
- NSLog(@"AxgTn6qfQvKXkcJaoetdDZG");
- NSLog(@"efvLpxHPTbscd41I2Qm05D3VEy");
- NSLog(@"ZM2KIN1L67p4mdFhG");
- NSLog(@"gGYbVFlPCoswKOyk25QxUzZu6INcRLWAjr4X1e");
- NSLog(@"ZMCzknJKb2LDrNio3qSA6");
- NSLog(@"XRZr3JoeFUAt7VQHpSB69i");
- NSLog(@"muIOW1PyhgkYLn9cK23TdjlMfApZ5U6b");
- NSLog(@"cOKf46sBjkyXoQVbuS5GlaRMJTE0vzYr8NUDd");
- NSLog(@"6ykb5tdUiGBLvpPoS");
- NSLog(@"rXev2zCjMob10OAwuyd4B8a7iFGQlRscgDnSTNhH");
- NSLog(@"PAm9Uxlab0QZhkY2LzegNyn6dTfqs31pOD8H");
- }
- -(void)a0sFOtgyl7:(UIBarButtonItem*) a0sFOtgyl7 amPE9bF:(UIRegion*) amPE9bF ak7Dxa:(UIViewController*) ak7Dxa aRkZ9Ic:(UIView*) aRkZ9Ic al6hSRw:(UICollectionView*) al6hSRw aaUYu:(UICollectionView*) aaUYu a1IxF:(UIWindow*) a1IxF a3lgc:(UIEvent*) a3lgc aQMdKA:(UIFont*) aQMdKA {
- NSLog(@"igZejmwhMvYp8Ha7GRCz0rVl4dxunNOtDf");
- NSLog(@"MP0jiVwfN31CsagRYGuz6e5dqp");
- NSLog(@"BTxRIXhNro");
- NSLog(@"knyaoFfvt7M32UVlKpON5LTgAxXZe9mbJH");
- NSLog(@"u0FUKb1nIkidsACfBSD6LJhlPmWVeoHG");
- NSLog(@"cDRB0ptb5Jz6EPoXmYVksiH");
- NSLog(@"rFDkGgI0BS2J73OmV6ewnzhxUdWs91EHA5lCpT4");
- NSLog(@"8FSwKeOhzoYxb2");
- NSLog(@"UMu49SzPqaCw");
- NSLog(@"HjMI0oxW3LrqY4iDuRXcd");
- NSLog(@"BVHWdfpjKgrQm25yxoO8Fwq3ztXCTU0LEne");
- NSLog(@"JKAqCIbcrt2Qw8Vi");
- NSLog(@"8FcRbVk6uy");
- NSLog(@"ckrQP9SX0GjeHmzRZf42hx");
- NSLog(@"tmoU9IV0wxNcZCnLRaHXA31");
- NSLog(@"jicoXesUA6RYkNpvKHS1gh7B5r");
- NSLog(@"M5Hc0R7DAe68NEpIT9KingO1shYXrC");
- NSLog(@"WqEDmMbIlFZ2AUT4e53PzSw");
- }
- -(void)aJWbQOY:(UITableView*) aJWbQOY aQYx9XGw8:(UIScreen*) aQYx9XGw8 agGB5YZhr1A:(UIImageView*) agGB5YZhr1A aW0RpEiDrhe:(UICollectionView*) aW0RpEiDrhe aQD3c:(UIViewController*) aQD3c aUrlh6tu:(UIDevice*) aUrlh6tu acNSZjvu:(UIFont*) acNSZjvu aP107:(UIWindow*) aP107 ajwSXP:(UIBarButtonItem*) ajwSXP akY0DKm65:(UIVisualEffectView*) akY0DKm65 az8jDAvKx:(UIView*) az8jDAvKx aXjaEsx:(UISwitch*) aXjaEsx a4iL2et8:(UISwitch*) a4iL2et8 asS3iNZWrwe:(UIVisualEffectView*) asS3iNZWrwe awbAGqnv:(UILabel*) awbAGqnv a86LzB5:(UIAlertView*) a86LzB5 a04DGanZ:(UIViewController*) a04DGanZ aCmXH:(UIColor*) aCmXH a07PLM4:(UIEvent*) a07PLM4 {
- NSLog(@"FdqvQpW4HDxBzY0KTJ3aM1GPNC");
- NSLog(@"NTDUFYLJ1H7I");
- NSLog(@"bkP9BJhF78sQTI");
- NSLog(@"5JBu27zfarbpHC6sTD8cMlROv");
- NSLog(@"sx2GA5RhL8SVE");
- NSLog(@"o40Akb3e8w79dEmHpatFRCc25xliO");
- NSLog(@"VunUDNgk7xRAC0MetfTbqav3XzGELKH9WjyP");
- NSLog(@"2xLv5w6RVQA13SY0FJOiqkdo7HzjelZtT9bX");
- NSLog(@"xHClha20DXPfg9QULG43Rb");
- NSLog(@"aOLjwSoHx2D5zNvdmkEBVAP9QIbg");
- NSLog(@"RogcBEspiUWPJM280VryTwHLb7NXujx4h");
- NSLog(@"6YehrG1s2SjckqAIm0HplxXouVz");
- NSLog(@"DlMXYgnyjvAzw4ZRo35bpW0TSP");
- NSLog(@"USejvcCRd4wy3r61KbgFGJqYW9ntV58XflHN2Akh");
- NSLog(@"SG9bZlQRAPvCdut");
- }
- @end
|