Open JPIOS opened 3 years ago
代码布局如下:
-(void)setup { [super setup];
CGFloat space = 16; _titleLb = [[UILabel alloc] initWithTextColor:UIColorFromRGB(0x2D2D2D) font:[UIFont gs_systemFontOfSize:14 weight:regular]]; [self.contentView addSubview:_titleLb]; _titleLb.sd_layout .xIs(space) .rightSpaceToView(self.contentView, space) .yIs(0) .autoHeightRatio(0); _titleLb.isAttributedContent = YES;
}
(void)setCellModel:(GSOrderDetailTrackCellViewModel *)cellModel { [super setCellModel:cellModel];
_titleLb.attributedText = cellModel.attrTitleValue; _titleLb.isAttributedContent = YES; [self setupAutoHeightWithBottomView:_titleLb bottomMargin:cellModel.contentEdge.bottom];
代码布局如下:
-(void)setup { [super setup];
CGFloat space = 16; _titleLb = [[UILabel alloc] initWithTextColor:UIColorFromRGB(0x2D2D2D) font:[UIFont gs_systemFontOfSize:14 weight:regular]]; [self.contentView addSubview:_titleLb]; _titleLb.sd_layout .xIs(space) .rightSpaceToView(self.contentView, space) .yIs(0) .autoHeightRatio(0); _titleLb.isAttributedContent = YES;
}
(void)setCellModel:(GSOrderDetailTrackCellViewModel *)cellModel { [super setCellModel:cellModel];
_titleLb.attributedText = cellModel.attrTitleValue; _titleLb.isAttributedContent = YES; [self setupAutoHeightWithBottomView:_titleLb bottomMargin:cellModel.contentEdge.bottom];
}