设置定时器去除hud,设置预警温度,立即更新UI

This commit is contained in:
kai60
2020-07-23 22:10:59 +08:00
parent 4bb3f1dcd5
commit 4ed0285813
3 changed files with 15 additions and 12 deletions
@@ -706,7 +706,7 @@ static NSString *setTimerflag = @"SetTimerCell";
NSData*selctorData=[dataContorl stringToHexData:selectorString];
[[Socketsingleton sharedInstance] soketWriteData:selctorData];
[_indicatorView startAnimating];
// [_indicatorView startAnimating];
readModel.selectorNumber = timerModel.selectorNumber;
NSString*readString=[NSString stringWithFormat:@"%@%@%@",readModel.description,readModel.selectorNumber,readModel.crc16str];
@@ -1547,9 +1547,7 @@ static NSString *setTimerflag = @"SetTimerCell";
}
NSLog(@"dataarr.count = %ld",dataArr.count);
[self.XuTohud hidmyHud];
[self.indicatorView stopAnimating];
[self.tableView reloadData];
}
else if (_selectSection-2<_titieArr.count && _selectSection-2>=0 && [readTimer isEqualToString:@"0119"]) {
@@ -1561,17 +1559,16 @@ static NSString *setTimerflag = @"SetTimerCell";
[dataArr addObject:_cycleModel];
[self.XuTohud hidmyHud];
[self.indicatorView stopAnimating];
[self.tableView reloadData];
}
if ([readTimer isEqualToString:@"0108"] || [readTimer isEqualToString:@"0105"]) {
[Xuanduo2DataUtility readSocketDataWithBackMsgModel:self.dataModel addWithBackData:data type:self.currentdevice.type];
[self refreshWithData:self.dataModel];
[self.XuTohud hidmyHud];
[self.indicatorView stopAnimating];
[self.tableView reloadData];
}
[self.XuTohud hidmyHud];
[self.indicatorView stopAnimating];
[self.tableView reloadData];
}
-(void)ifishDeviceLogInFail{