//
|
// 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
|
}
|
}
|