Skip to content

Commit 6b79b31

Browse files
committed
版本显示 tap 切换
1 parent de905a4 commit 6b79b31

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

Coding_iOS/.DS_Store

0 Bytes
Binary file not shown.

Coding_iOS/Coding_Enterprise_iOS-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</dict>
2929
</array>
3030
<key>CFBundleVersion</key>
31-
<string>2.9.5.20180621.1</string>
31+
<string>2.9.5.180622.1</string>
3232
<key>ITSAppUsesNonExemptEncryption</key>
3333
<false/>
3434
<key>LSApplicationQueriesSchemes</key>

Coding_iOS/Coding_iOS-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</dict>
3838
</array>
3939
<key>CFBundleVersion</key>
40-
<string>5.4.20180621.1</string>
40+
<string>5.4.180622.1</string>
4141
<key>ITSAppUsesNonExemptEncryption</key>
4242
<false/>
4343
<key>LSApplicationQueriesSchemes</key>

Coding_iOS/Controllers/MeSetting/AboutViewController.m

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ - (void)viewDidLoad{
5353
versionLabel.font = [UIFont systemFontOfSize:13];
5454
versionLabel.textColor = [UIColor colorWithHexString:@"0x323A45"];
5555
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+
}];
5763
[self.view addSubview:versionLabel];
5864

5965
UILabel *infoLabel = [[UILabel alloc] init];
@@ -73,7 +79,6 @@ - (void)viewDidLoad{
7379
[versionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
7480
make.top.equalTo(logoView.mas_bottom).offset(logoLabelTop);
7581
make.left.right.equalTo(self.view);
76-
make.height.mas_equalTo(versionLabel.font.pointSize);
7782
}];
7883

7984
[infoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -134,7 +139,13 @@ - (void)viewDidLoad{
134139
versionLabel.font = [UIFont systemFontOfSize:12];
135140
versionLabel.textColor = kColor666;
136141
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+
138149
[self.view addSubview:versionLabel];
139150

140151
UILabel *infoLabel = [[UILabel alloc] init];

0 commit comments

Comments
 (0)