You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.4 KiB
51 lines
1.4 KiB
// |
|
// TFBookStoreNovelVerticalCell.m |
|
// TFReader |
|
// |
|
// Created by 谢腾飞 on 2020/12/16. |
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved. |
|
// |
|
|
|
#import "TFBookStoreNovelVerticalCell.h" |
|
|
|
@implementation TFBookStoreNovelVerticalCell |
|
|
|
- (void)createSubviews |
|
{ |
|
[super createSubviews]; |
|
|
|
[self.coverView mas_remakeConstraints:^(MASConstraintMaker *make) { |
|
make.centerX.mas_equalTo(self.mas_centerX); |
|
make.top.mas_equalTo(self.mas_top); |
|
make.width.mas_equalTo(BOOK_WIDTH); |
|
make.height.mas_equalTo(BOOK_HEIGHT); |
|
}]; |
|
|
|
[self.titleLabel mas_remakeConstraints:^(MASConstraintMaker *make) { |
|
make.left.mas_equalTo(self.coverView.mas_left); |
|
make.top.mas_equalTo(self.coverView.mas_bottom).with.offset(kQuarterMargin); |
|
make.width.mas_equalTo(self.coverView.mas_width); |
|
make.height.mas_equalTo(BOOK_CELL_TITLE_HEIGHT / 2); |
|
}]; |
|
|
|
self.subtitleLabel.hidden = NO; |
|
} |
|
|
|
- (void)setLabelListModel:(TFProductionModel *)labelListModel |
|
{ |
|
[super setLabelListModel:labelListModel]; |
|
|
|
NSString *str = @""; |
|
for (TFTagModel *tagModel in labelListModel.tag) { |
|
if (tagModel.tab.length > 0) { |
|
str = [[str stringByAppendingString:tagModel.tab ? : @""] stringByAppendingString:@" "]; |
|
} |
|
} |
|
|
|
if (str.length == 0) { |
|
str = labelListModel.production_descirption; |
|
} |
|
self.subtitleLabel.text = str; |
|
} |
|
|
|
@end
|
|
|