1234567891011121314151617181920212223242526272829 |
- //
- // ActiveNavCustomView.swift
- // xingchuangke
- //
- // Created by 李晓飞 on 2020/9/4.
- // Copyright © 2020 Virgil. All rights reserved.
- //
- import UIKit
- class ActiveNavCustomView: UIView {
- @IBOutlet weak var titleLabel: UILabel!
- @IBOutlet weak var selectImgV: UIImageView!
- var canEdit: Bool = false {
- didSet {
- selectImgV.isHidden = !canEdit
- }
- }
- // Only override draw() if you perform custom drawing.
- // An empty implementation adversely affects performance during animation.
- override func draw(_ rect: CGRect) {
- // Drawing code
- }
- }
|