Commit 10cbac0d authored by Steven杜宇's avatar Steven杜宇

// 学历

parent 4d99b056
......@@ -227,9 +227,25 @@ class YHEducationCertificateConfirmCell: UITableViewCell {
make.bottom.equalTo(-16)
}
for tips in tipsArr {
var lastTipsView: YHEducationMarkView? = nil
for (index, tips) in tipsArr.enumerated() {
let tipsView = YHEducationMarkView(frame: .zero)
tipsView.title = tips
markContentView.addSubview(tipsView)
tipsView.snp.makeConstraints { make in
make.left.equalTo(16)
make.right.equalTo(-16)
if let lastTipsView = lastTipsView {
make.top.equalTo(lastTipsView.snp.bottom).offset(12)
} else {
make.top.equalTo(16)
}
if index == tipsArr.count-1 {
make.bottom.equalTo(-16)
}
}
lastTipsView = tipsView
}
}
......
......@@ -9,6 +9,12 @@
import UIKit
class YHEducationMarkView: UIView {
var title: String = "" {
didSet {
titleLabel.text = title
}
}
var dotView: UIView = {
let view = UIView()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment