0
contentLabel.preferredMaxLayoutWidth = kScreenWidth - 20
contentLabel.numberOfLines = 0
我使用SnapKit設置頂部和左側。爲什麼標籤的高度爲零?
contentLabel.snp.makeConstraints { (make) in
make.top.equalTo(topView.snp.bottom)
make.left.equalTo(topView.iconView)
}
print(contentLabel.frame.size.height)
它打印0.它沒事嗎?