Skip to content

Commit f9c94cb

Browse files
tonychanchenoldcodefarmer
authored andcommitted
video页面添加p2p版本号
Change-Id: Ic626ce123b365077d97ac40b8d65221a0a57bbd8 (cherry picked from commit 7685a17)
1 parent d9b9836 commit f9c94cb

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Source/LinkSDKDemo/Common/TIoTMainVC.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ - (void)viewDidLoad {
2020
[super viewDidLoad];
2121
// Do any additional setup after loading the view from its nib.
2222
NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
23-
_versionLB.text = [NSString stringWithFormat:@"v%@",appVersion];
23+
_versionLB.text = [NSString stringWithFormat:@"%@",appVersion];
2424
}
2525
- (IBAction)jumpLinkSDK:(id)sender {
2626
LoginVC *loginVC = [[LoginVC alloc]init];

Source/LinkSDKDemo/Video/Login/Controller/TIoTDemoVideoVC.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ - (void)viewDidLoad {
2020
self.view.backgroundColor = [UIColor whiteColor];
2121

2222
[self initVideoUI];
23+
24+
NSString *appVersion = [TIoTCoreXP2PBridge getSDKVersion];
25+
UILabel *versionLB = [[UILabel alloc]init];
26+
versionLB.text = [NSString stringWithFormat:@"%@",appVersion];
27+
[self.view addSubview:versionLB];
28+
[versionLB mas_makeConstraints:^(MASConstraintMaker *make) {
29+
make.bottom.equalTo(self.view.mas_bottom).offset(-16);
30+
make.left.equalTo(self.view).offset(16);
31+
}];
32+
2333
}
2434

2535
- (void)initVideoUI {

0 commit comments

Comments
 (0)