@@ -53,7 +53,13 @@ - (void)viewDidLoad{
53
53
versionLabel.font = [UIFont systemFontOfSize: 13 ];
54
54
versionLabel.textColor = [UIColor colorWithHexString: @" 0x323A45" ];
55
55
versionLabel.textAlignment = NSTextAlignmentCenter;
56
- versionLabel.text = [NSString stringWithFormat: @" CODING Enterprise 版本:V%@ " , kVersion_Coding ];
56
+ versionLabel.numberOfLines = 0 ;
57
+ versionLabel.text = [NSString stringWithFormat: @" CODING Enterprise\n\n 版本:V%@ " , kVersion_Coding ];
58
+ versionLabel.userInteractionEnabled = YES ;
59
+ __weak typeof (versionLabel) weakLabel = versionLabel;
60
+ [versionLabel bk_whenTapped: ^{
61
+ weakLabel.text = [NSString stringWithFormat: @" CODING Enterprise\n\n 版本:V%@ " , [weakLabel.text hasSuffix: kVersion_Coding ]? kVersionBuild_Coding: kVersion_Coding ];
62
+ }];
57
63
[self .view addSubview: versionLabel];
58
64
59
65
UILabel *infoLabel = [[UILabel alloc ] init ];
@@ -73,7 +79,6 @@ - (void)viewDidLoad{
73
79
[versionLabel mas_makeConstraints: ^(MASConstraintMaker *make) {
74
80
make.top .equalTo (logoView.mas_bottom ).offset (logoLabelTop);
75
81
make.left .right .equalTo (self.view );
76
- make.height .mas_equalTo (versionLabel.font .pointSize );
77
82
}];
78
83
79
84
[infoLabel mas_makeConstraints: ^(MASConstraintMaker *make) {
@@ -134,7 +139,13 @@ - (void)viewDidLoad{
134
139
versionLabel.font = [UIFont systemFontOfSize: 12 ];
135
140
versionLabel.textColor = kColor666 ;
136
141
versionLabel.textAlignment = NSTextAlignmentCenter;
137
- versionLabel.text = [NSString stringWithFormat: @" 版本:V%@ " , kVersionBuild_Coding ];
142
+ versionLabel.text = [NSString stringWithFormat: @" 版本:V%@ " , kVersion_Coding ];
143
+ versionLabel.userInteractionEnabled = YES ;
144
+ __weak typeof (versionLabel) weakLabel = versionLabel;
145
+ [versionLabel bk_whenTapped: ^{
146
+ weakLabel.text = [NSString stringWithFormat: @" 版本:V%@ " , [weakLabel.text hasSuffix: kVersion_Coding ]? kVersionBuild_Coding: kVersion_Coding ];
147
+ }];
148
+
138
149
[self .view addSubview: versionLabel];
139
150
140
151
UILabel *infoLabel = [[UILabel alloc ] init ];
0 commit comments