JLChen
2021-04-30 a5247b61d585627a1a7b1e1f35f34de9f0af9fba
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
49
50
51
52
53
//
//  Copyright © 2018年 Zhejiang Dahua Technology Co.,Ltd. All rights reserved.
//
 
import UIKit
 
class DHWiFiUnsupportVC: DHErrorBaseViewController {
    
    public var myTitle: String = ""
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        if myTitle != "" {
            title = myTitle
        }
        // Do any additional setup after loading the view.
        errorView.updateTopImageViewConstraint(top: 5, width: 255, height: 255)
        errorView.detailLabel.textAlignment = .left
        errorView.contentLabel.textAlignment = .left
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    // MARK: - DHAddBaseVCProtocol
    override func leftActionType() -> DHAddBaseLeftAction {
        return .back
    }
    
    override func isRightActionHidden() -> Bool {
        return myTitle.count > 0
    }
    
    // MARK: - DHErrorBaseVCProtocol
    override func errorImageName() -> String {
        return "adddevice_icon_wifiexplain"
    }
    
    override func errorContent() -> String {
        return "add_device_tip_not_support_5g_1".lc_T + "\n\n" + "add_device_tip_not_support_5g_2".lc_T
    }
    
    override func icConfirmHidden() -> Bool {
        return true
    }
    
    override func isQuitHidden() -> Bool {
        return true
    }
}