| | |
| | | - (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]; |