智能连接闪退问题,热点失败提示修复,设置读读取定时器hud问题

This commit is contained in:
kai60 2020-07-22 21:17:07 +08:00
parent db92b2796d
commit 4bb3f1dcd5
4 changed files with 8 additions and 3 deletions

View File

@ -320,6 +320,11 @@ Copy NSString *deviceId;
self.HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
self.HUD.mode = MBProgressHUDModeIndeterminate;
self.HUD.labelText = msg;
if ([msg isEqualToString:@"Socket连接失败"])
{
[self.HUD hide:YES afterDelay:3];
[self endProgress];
}
}
-(void)endProgress{
[self.progressView endProgressWithString:@"连接结束"];

View File

@ -713,7 +713,7 @@ static NSString *setTimerflag = @"SetTimerCell";
NSLog(@"read str = %@",readString);
NSData*readData=[dataContorl stringToHexData:readString];
[[Socketsingleton sharedInstance] soketWriteData:readData];
[_indicatorView startAnimating];
;
}
else if ([group isKindOfClass: [XuanduoCycleModel class] ])
{

View File

@ -166,7 +166,7 @@
-(void)onUdpSocket:(AsyncUdpSocket *)sock didNotReceiveDataWithTag:(long)tag dueToError:(NSError *)error{
NSLog(@"dueToError%@",error);
[self postmsg:error.localizedDescription];
[self postmsg:@"Socket连接失败"];
}

View File

@ -287,7 +287,7 @@ extern BOOL isfromCameraView;
[self.view addSubview:_maclabel];
[self.view bringSubviewToFront:_maclabel];
self.bakbutton.userInteractionEnabled=YES;
[self mmPogressHUDdismiss];
[self connectNormalView];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self.view makeToast:@"设备类型不匹配,请重新选择入口绑定"];