宽窄优行-由【嘉易行】项目成品而来
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
//
//  HomeTitleView.swift
//  OKProject
//
//  Created by alvin_y on 2020/5/27.
//  Copyright © 2020 yangwang. All rights reserved.
//
 
import UIKit
 
/// 导航栏标题
class HomeTitleView: YYButton {
    
    /// 名称
    @IBOutlet weak var label_name: UILabel!
    
    /// 标题
    var text: String = "请选择服务城市"{
        didSet{
            self.label_name.text = text
        }
    }
    
    /// 获取Self
    /// - Returns: Self
    class func instance() -> HomeTitleView {
        let v = UINib(nibName: "HomeTitleView", bundle: nil).instantiate(withOwner: self, options: nil).first as! HomeTitleView
        v.label_name.textColor = UIColor.color(light: UIColor.color(hexString: "#252A37"), dark: UIColor.color(hexString: "#FFFFFF"))
        return v
    }
 
    
}