智能连接闪退问题,热点失败提示修复,设置读读取定时器hud问题
This commit is contained in:
parent
db92b2796d
commit
4bb3f1dcd5
|
|
@ -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:@"连接结束"];
|
||||
|
|
|
|||
|
|
@ -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] ])
|
||||
{
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@
|
|||
-(void)onUdpSocket:(AsyncUdpSocket *)sock didNotReceiveDataWithTag:(long)tag dueToError:(NSError *)error{
|
||||
|
||||
NSLog(@"dueToError%@",error);
|
||||
[self postmsg:error.localizedDescription];
|
||||
[self postmsg:@"Socket连接失败"];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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:@"设备类型不匹配,请重新选择入口绑定"];
|
||||
|
|
|
|||
Loading…
Reference in New Issue