From 695896987ef9eeb8cf93ec73b16fbca607f08f9c Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Mon, 18 Feb 2019 11:22:58 +0100 Subject: [PATCH] set dynamic app version --- Classes/AboutView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/AboutView.m b/Classes/AboutView.m index 1bc831b8f..dd3f6d3a9 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; - _appVersionLabel.text = [NSString stringWithFormat:@"%@ iOS %s", name, LINPHONE_IOS_VERSION]; + NSString *curVersion = [NSString stringWithFormat:@"version %@",[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]]; + _appVersionLabel.text = [NSString stringWithFormat:@"%@ iOS %@", name, curVersion]; _libVersionLabel.text = [NSString stringWithFormat:@"%@ Core %s", name, linphone_core_get_version()]; UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onLicenceTap)];