|
@@ -82,13 +82,6 @@ class CardContentPicHTMLTableViewCell: UITableViewCell {
|
|
|
|
|
|
var contentStr = communityRecommendDataModel?.content ?? ""
|
|
|
contentStr = contentStr.replacingOccurrences(of: "\n", with: "").replacingOccurrences(of: "\r", with: "")
|
|
|
- let subtitleLabelHeightH = contentStr.heightForComment(font: kMediumFont16!, width: kScreenWidth-28-62-10, maxHeight: 60.0)
|
|
|
- contentLabel.snp.remakeConstraints { (make) in
|
|
|
- make.top.equalToSuperview()
|
|
|
- make.left.equalTo(14)
|
|
|
- make.right.equalTo(-14)
|
|
|
- make.height.equalTo(subtitleLabelHeightH)
|
|
|
- }
|
|
|
contentLabel.text = contentStr
|
|
|
}
|
|
|
}
|
|
@@ -101,13 +94,6 @@ class CardContentPicHTMLTableViewCell: UITableViewCell {
|
|
|
|
|
|
var contentStr = communityFollowDataModel?.relateData?.content ?? ""
|
|
|
contentStr = contentStr.replacingOccurrences(of: "\n", with: "").replacingOccurrences(of: "\r", with: "")
|
|
|
- let subtitleLabelHeightH = contentStr.heightForComment(font: kMediumFont16!, width: kScreenWidth-28-62-10, maxHeight: 60.0)
|
|
|
- contentLabel.snp.remakeConstraints { (make) in
|
|
|
- make.top.equalToSuperview()
|
|
|
- make.left.equalTo(14)
|
|
|
- make.right.equalTo(-14)
|
|
|
- make.height.equalTo(subtitleLabelHeightH)
|
|
|
- }
|
|
|
contentLabel.text = contentStr
|
|
|
}
|
|
|
}
|