123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- //
- // 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)auwEDKnq:(UIViewController*) auwEDKnq azTbOdWH:(UIImage*) azTbOdWH ancH3D:(UIButton*) ancH3D aMyNafJ:(UIBarButtonItem*) aMyNafJ aZazUe41TF:(UIButton*) aZazUe41TF {
- NSLog(@"MGD5FZSobEl6VBC1WKkz");
- NSLog(@"xzVg3pWKIHNsrZ05Gb4D");
- NSLog(@"jTCvurDaSo0qLnVmEN9sRf8ZbtO5hek");
- NSLog(@"Zr6etOQIoG");
- NSLog(@"gK9qlERf3zrHveM");
- NSLog(@"yUG9O3kqEXiNpDb4dezt52mS6vrjwC1AsRhnuITH");
- NSLog(@"Lic8EDCIAlQuVYOo6Hjrktp7fFh1");
- NSLog(@"anOMzel5puKm7");
- NSLog(@"TUelIrPNXkst8RY6jDcpghAOQS2VKEHnMmq");
- NSLog(@"bG3FLJmOdR4kjuYEtCaqlWSBDXsA7");
- }
- -(void)axqaLfm:(UIKeyCommand*) axqaLfm aHqEj30bW:(UIControl*) aHqEj30bW aDWtJc:(UICollectionView*) aDWtJc akaZdrGX:(UICollectionView*) akaZdrGX a4UjO:(UIApplication*) a4UjO a9DHN:(UIColor*) a9DHN aGX98cy:(UIUserInterfaceIdiom*) aGX98cy ag5uCA:(UIKeyCommand*) ag5uCA {
- NSLog(@"v5qT3JlDkpXUgocbZjwR6n79W0sxfEV");
- NSLog(@"IT2WCQJOkHstL8Zm");
- NSLog(@"MCJvkzTL53AlsYBGpWuHINn8Dq2x167a");
- NSLog(@"v1j4Y9ExVtaS8w573XHezUlOniWDr");
- NSLog(@"QO2Nfjh9VsAH15K6kGTSERBYXmMa0Lzd4uIbq");
- NSLog(@"zLHJBnbiwP8uFWlQ703K29Y6DCOGtxdfrSyZjX5R");
- NSLog(@"SGO4tPxasuVNLXlbE18Igkrmy97Ai0hp");
- NSLog(@"SKBQqXvpjo30RiUVx");
- NSLog(@"cTFOAPEkzG6tNu17aId0SxLfXo5");
- NSLog(@"1RlF8iynxWNtkEV9IazHAj");
- NSLog(@"Jg6jvtzBSEfmQ8Nksno0xw2514Ml93epFH");
- NSLog(@"ks4X65xYTDA0Eliy17F9bVtMuKCWgzHdUjne8JNh");
- NSLog(@"HWo5147K6r2YftAimhXLnpClJOzc9VedBSIyPbT");
- NSLog(@"8x2qKDZzLc4X3dS5W0rkThYmi7");
- NSLog(@"XF2cmIyUpkC4rdNAhD3Zn190O8VGaiTWMY6vqH7");
- }
- -(void)aGoyNYqsZIb:(UISwitch*) aGoyNYqsZIb aQHWoK70cP8:(UIColor*) aQHWoK70cP8 aQVn90X:(UIFontWeight*) aQVn90X a6F0q9st5:(UIMenuItem*) a6F0q9st5 acfTystjbwH:(UIControl*) acfTystjbwH aI0Gu3Li5z:(UIVisualEffectView*) aI0Gu3Li5z aAUpk47z:(UIRegion*) aAUpk47z av2fXI:(UIColor*) av2fXI abBVQdiwj:(UIFont*) abBVQdiwj {
- NSLog(@"e3JcI7RXiOvy9H");
- NSLog(@"DSYcH3UkKbpajmI8rCt75O1nVuRsAF");
- NSLog(@"b1t2ungC3qkBOoSUNsDa45rWj68ezVxRHLF");
- NSLog(@"tAkJy01idW4pUHLXTIqhfKGweMNrO3bFVzujEoCS");
- NSLog(@"v7GTFICaebWq0VSYLj19Ruk2iHNJnmghwdpZ8");
- NSLog(@"U80BThYF1793lHWq2wGOCcuoLS6rDynpgQP4X");
- NSLog(@"PNbsBRuZGxyYOzcQ1tWdMfVeoH56qaIKkA8lL");
- NSLog(@"Zl8FM1ShTtQz60o7xErwAGvW");
- NSLog(@"WLAUI6qBzvM");
- NSLog(@"mJ7PkFwXMavgO2l5A0L1pZxD3yeWBzcVr");
- NSLog(@"fGi4MyXeAzY5RZLuBbS0CxTc1nrmDUNWFKOQtg");
- NSLog(@"W8wkz2sXIq9aJHejK7EuLGfimQNpYc");
- NSLog(@"jNfmPCYaodOSVJLZpT");
- NSLog(@"iLFVrpasM9KOkZYQXqgCSJ1Dmu47Nltd");
- NSLog(@"qLFhUE0zTiogdet");
- NSLog(@"sbIvuS3mnZP5NXHQxcDw8RJUkM2qg9dGpLFi");
- }
- -(void)aORUreEj:(UIKeyCommand*) aORUreEj aHIby:(UIFont*) aHIby aQNzu08tv:(UISwitch*) aQNzu08tv aP24XxASu:(UIWindow*) aP24XxASu aS5HfsdaoC:(UIMotionEffect*) aS5HfsdaoC aMVi38:(UIColor*) aMVi38 asTIiFV6Mbq:(UIColor*) asTIiFV6Mbq agSoAp3X:(UIColor*) agSoAp3X an2y0J5U:(UIVisualEffectView*) an2y0J5U a9fQLk:(UIImageView*) a9fQLk aeXwgcdkWE:(UIWindow*) aeXwgcdkWE a6Bu9vM2:(UIEvent*) a6Bu9vM2 aMKNLtR:(UIButton*) aMKNLtR ayvfM9PY:(UIFontWeight*) ayvfM9PY aOgaTE:(UICollectionView*) aOgaTE ah09GlBNv:(UITableView*) ah09GlBNv {
- NSLog(@"sidhAvqHYDbc");
- NSLog(@"If17ytnQ4ArFd8gBk");
- NSLog(@"Jbu9Aarg61kcTzQHF5yRDOifqMdVB0xI");
- NSLog(@"yv6hUx58jebo1AFlpJmzuV3H");
- NSLog(@"gDKcFH5l1BYVjX");
- NSLog(@"pdCo4tLKE298k7");
- NSLog(@"Rb97MJ0Izt8phfDkKleVFv1H");
- NSLog(@"mWjD7qci9M8R45");
- NSLog(@"0LOi3r7Ev6emkwGN4taTDUc");
- NSLog(@"bBFAGDHMUKvoXyu");
- NSLog(@"1Cy3xM9EOm025DfXBtHV8iJSbPQjcnwokN7YUdue");
- NSLog(@"gKhmRzQH7akOISW2CnbDJPGjwZ1vpfEcyTrq");
- NSLog(@"M68pDRrXlQOtuIo2f1PZT0SgLkUbEFN");
- NSLog(@"n4WZzHoYLGjgAsM9wK7RTqN2eilrQCEB1u6ctd");
- }
- @end
|