//
|
// StudentReportVC.swift
|
// WanPai
|
//
|
// Created by 无故事王国 on 2023/6/26.
|
//
|
|
import UIKit
|
import JQTools
|
|
class StudentReportVC: BaseVC {
|
|
@IBOutlet weak var label_stu_hei: UILabel!
|
@IBOutlet weak var label_stu_wei: UILabel!
|
@IBOutlet weak var label_stu_BMI: UILabel!
|
|
override func viewDidLoad() {
|
super.viewDidLoad()
|
title = "测试报告"
|
}
|
|
override func setUI() {
|
label_stu_hei.attributedText = setAttribute(t1: "0", t2: "cm")
|
label_stu_wei.attributedText = setAttribute(t1: "0", t2: "kg")
|
label_stu_BMI.attributedText = setAttribute(t1: "0.0", t2: "正常")
|
}
|
|
private func setAttribute(t1:String,t2:String)->NSMutableAttributedString{
|
let color:UIColor = UIColor(hexStr: "#2F5264")
|
let a1 = AttributedStringbuilder()
|
a1.add(string: t1, withFont: UIFont.systemFont(ofSize: 26), withColor: color)
|
.add(string: t2, withFont: UIFont.systemFont(ofSize: 16), withColor: color)
|
return a1.mutableAttributedString
|
}
|
|
}
|