| | |
| | | |
| | | - (void)dealloc |
| | | { |
| | | |
| | | |
| | | } |
| | | |
| | | - (void)viewDidLoad { |
| | |
| | | [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) |
| | |
| | | |
| | | - (void)checkQRCode:(NSString *)strQRcode |
| | | { |
| | | NSArray *arrString = [strQRcode componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]]; |
| | | 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]; |