一键喂鱼和功率显示
This commit is contained in:
+19
@@ -180,6 +180,12 @@
|
||||
|
||||
self.controlBtn.hidden=NO;
|
||||
self.cameraBtn.hidden=NO;
|
||||
[self.controlBtn setTitle:@"一键喂鱼" forState:UIControlStateNormal];
|
||||
[self.controlBtn setBackgroundImage:[CommonUtils createImageWithColor:[UIColor lightGrayColor]] forState:UIControlStateNormal];
|
||||
[self.controlBtn setBackgroundImage:[CommonUtils createImageWithColor:[UIColor cyanColor]] forState:UIControlStateSelected];
|
||||
[self.cameraBtn setTitle:@"功率" forState:UIControlStateNormal];
|
||||
[self.cameraBtn setBackgroundImage:[CommonUtils createImageWithColor:[UIColor lightGrayColor]] forState:UIControlStateNormal];
|
||||
[self.cameraBtn setBackgroundImage:[CommonUtils createImageWithColor:[UIColor cyanColor]] forState:UIControlStateHighlighted];
|
||||
self.heartCount=0;
|
||||
|
||||
}
|
||||
@@ -391,6 +397,19 @@
|
||||
}
|
||||
|
||||
}
|
||||
else if ([self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO5F])
|
||||
{
|
||||
[self.cameraBtn setTitle:[NSString stringWithFormat:@"%ldw",[dataContorl hexToTen:self.dataModel.powerRating]] forState:UIControlStateNormal];
|
||||
if ([self.dataModel.fishFeedStatus isEqualToString:@"01"])
|
||||
{
|
||||
self.controlBtn.selected=YES;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
self.controlBtn.selected=NO;
|
||||
}
|
||||
}
|
||||
|
||||
//杀菌灯的状态
|
||||
|
||||
|
||||
Reference in New Issue
Block a user