萤石云 iOSSDK,移植跨平台相关工程
Davin
2024-12-18 b4e1288a9b63eb820e9c9489c56aac4bf6b31067
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)
@@ -237,7 +247,7 @@
    strQRcode = [strQRcode stringByReplacingOccurrencesOfString:@"\r\n" withString:@"\r"];//2021-10-19 解决部分猫眼设备屏幕显示的二维码,参数之间出现空行导致分割取错字段问题
    
    NSArray *arrString = [strQRcode componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]];
    [GlobalKit shareKit].deviceType = self.deviceType;
    if(arrString.count >=3)
    {
        [GlobalKit shareKit].deviceSerialNo = arrString[1];