From 3e4be5ed4d2c0395dd60e392baf86c59762059b1 Mon Sep 17 00:00:00 2001 From: Davin <591807572@qq.com> Date: 星期五, 30 六月 2023 10:14:50 +0800 Subject: [PATCH] feature 猫眼全屏布局调整 && UI细节适配 --- EZSDK/EZSDK/EZ/UIViewControllers/EZAddByQRCodeViewController.m | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/EZSDK/EZSDK/EZ/UIViewControllers/EZAddByQRCodeViewController.m b/EZSDK/EZSDK/EZ/UIViewControllers/EZAddByQRCodeViewController.m index ac5e272..94e8e17 100644 --- a/EZSDK/EZSDK/EZ/UIViewControllers/EZAddByQRCodeViewController.m +++ b/EZSDK/EZSDK/EZ/UIViewControllers/EZAddByQRCodeViewController.m @@ -32,7 +32,7 @@ - (void)dealloc { - + } - (void)viewDidLoad { @@ -66,11 +66,21 @@ [alert show]; } self.qrView.hidden = YES; + + self.prevController = (UIViewController *)[self.navigationController.viewControllers objectAtIndex: ([self.navigationController.viewControllers count] -2)]; + HDLEZLog(@"瀵艰埅鏍忓瓙view锛�%@",self.prevController ); + + + self.tipsLabel.text=HDLEZLocallizedString(@"device_add_device_qr_code"); } - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; +// if(self.shouldPop){//閫�鍑虹晫闈� +// [self.navigationController popViewControllerAnimated:YES]; +// } + [[GlobalKit shareKit] clearDeviceInfo]; if (authStatus == AVAuthorizationStatusDenied || authStatus == AVAuthorizationStatusRestricted) @@ -234,8 +244,10 @@ - (void)checkQRCode:(NSString *)strQRcode { - NSArray *arrString = [strQRcode componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]]; + strQRcode = [strQRcode stringByReplacingOccurrencesOfString:@"\r\n" withString:@"\r"];//2021-10-19 瑙e喅閮ㄥ垎鐚溂璁惧灞忓箷鏄剧ず鐨勪簩缁寸爜锛屽弬鏁颁箣闂村嚭鐜扮┖琛屽鑷村垎鍓插彇閿欏瓧娈甸棶棰� + NSArray *arrString = [strQRcode componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]]; + [GlobalKit shareKit].deviceType = self.deviceType; if(arrString.count >=3) { [GlobalKit shareKit].deviceSerialNo = arrString[1]; -- Gitblit v1.8.0