Skip to content

Commit 574deda

Browse files
SundoggyNeweagleychen
authored andcommitted
去掉版本号前面的v
Change-Id: I36d663cc5f09839b4cc062a312adbcaa59219d23
1 parent 3fdde6c commit 574deda

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/LinkApp/Classes/Module/Home/View/TIoTNewVersionTipView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ - (void)setupUIWithVersionInfo:(NSDictionary *)versionInfo {
9797
UILabel *versionNumLabel = [[UILabel alloc] init];
9898
versionNumLabel.textColor = kRGBColor(136, 136, 136);
9999
versionNumLabel.font = [UIFont wcPfRegularFontOfSize:14];
100-
versionNumLabel.text = [NSString stringWithFormat:@"版本号:V%@", [versionInfo objectForKey:@"AppVersion"]];
100+
versionNumLabel.text = [NSString stringWithFormat:@"版本号:%@", [versionInfo objectForKey:@"AppVersion"]];
101101
[paramView addSubview:versionNumLabel];
102102
[versionNumLabel mas_makeConstraints:^(MASConstraintMaker *make) {
103103
make.top.equalTo(paramView).offset(9);

Source/LinkApp/Classes/Module/Mine/Controller/TIoTAboutVC.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ - (void)viewDidLoad {
3434
NSString *appVersion = [info objectForKey:@"CFBundleShortVersionString"];
3535
self.versionLab.numberOfLines = 2;
3636
self.versionLab.textAlignment = NSTextAlignmentCenter;
37-
self.versionLab.text = [NSString stringWithFormat:@"v%@",appVersion];
37+
self.versionLab.text = [NSString stringWithFormat:@"%@",appVersion];
3838
[self checkNewVersion];
3939
}
4040

@@ -84,7 +84,7 @@ - (void)checkNewVersion {
8484
NSString *theVersion = [versionInfo objectForKey:@"AppVersion"];
8585
if (theVersion.length && [self isTheVersion:theVersion laterThanLocalVersion:appVersion]) {
8686
self.showLastestVerion = YES;
87-
self.versionLab.text = [NSString stringWithFormat:@"当前版本\nv%@",appVersion];
87+
self.versionLab.text = [NSString stringWithFormat:@"当前版本\n%@",appVersion];
8888
}
8989
}
9090
} failure:^(NSString *reason, NSError *error,NSDictionary *dic) {

0 commit comments

Comments
 (0)