宽窄优行-由【嘉易行】项目成品而来
younger_times
2023-07-05 0d8f5fc8a516bfd07e425909e4a4432600572ee7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
//  YYAmountCell.swift
//  OKProject
//
//  Created by alvin_y on 2020/9/23.
//  Copyright © 2020 yangwang. All rights reserved.
//
 
import UIKit
 
class YYAmountCell: UITableViewCell {
    
    @IBOutlet weak var label_payDescribe: UILabel!
    @IBOutlet weak var button_detail: UIButton!
    @IBOutlet weak var label_amount: UILabel!
    @IBOutlet weak var button_costRule: UIButton!
    @IBOutlet weak var carpoolingL: UILabel!
    @IBOutlet weak var buttonDetailCons: NSLayoutConstraint!
 
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        let attributedString = AttributedStringbuilder.build()
            .add(string: "查看收费明细", withFont: UIFont.systemFont(ofSize: 12, weight: .medium), withColor: #colorLiteral(red: 0, green: 0, blue: 0, alpha: 0.6)).underLine()
            .mutableAttributedString
        button_detail.setAttributedTitle(attributedString, for: .normal)
 
        let attributed1 = AttributedStringbuilder.build()
            .add(string: "查看计价规则", withFont: UIFont.systemFont(ofSize: 12, weight: .medium), withColor: #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1))
            .underLine()
            .mutableAttributedString
        button_costRule.setAttributedTitle(attributed1, for: .normal)
    }
 
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
 
        // Configure the view for the selected state
    }
    
}
extension YYAmountCell {
    
    static func makeByXIB() -> YYAmountCell {
        let view = Bundle.main.loadNibNamed(String(describing: YYAmountCell.self), owner: nil, options: nil)!.first as! YYAmountCell
        return view
    }
}