From e76955d8ab2493daca01b05111c4f121977c6ea9 Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Tue, 9 Jul 2019 10:35:05 +0200 Subject: [PATCH] add build number in AboutView --- Classes/AboutView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/AboutView.m b/Classes/AboutView.m index abe327561..ba7a3460b 100644 --- a/Classes/AboutView.m +++ b/Classes/AboutView.m @@ -49,7 +49,8 @@ static UICompositeViewDescription *compositeDescription = nil; [super viewDidLoad]; NSString *name = [NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleDisplayName"]; _nameLabel.text = name; - NSString *curVersion = [NSString stringWithFormat:@"version %@",[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]]; + NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary]; + NSString *curVersion = [NSString stringWithFormat:@"version %@(%@)",[infoDict objectForKey:@"CFBundleShortVersionString"], [infoDict objectForKey:@"CFBundleVersion"]]; _appVersionLabel.text = [NSString stringWithFormat:@"%@ iOS %@", name, curVersion]; _libVersionLabel.text = [NSString stringWithFormat:@"%@ SDK %s", name, LINPHONE_SDK_VERSION]; UITapGestureRecognizer *tapGestureRecognizer =