联系我们字体修改和关联宠物笼的设置问题修改
This commit is contained in:
+1
@@ -18,6 +18,7 @@
|
||||
#import "RunSun84Protocol.h"
|
||||
#import "RuiMeiProtocolModel.h"
|
||||
#import "Xuanduo2Model.h"
|
||||
#import "UIImage+WaterMark.h"
|
||||
|
||||
@interface FishControlFourthCell : UICollectionViewCell
|
||||
|
||||
|
||||
+12
@@ -334,12 +334,24 @@
|
||||
NSString*stateString=[xuan3fmodel.uvLamp substringWithRange:NSMakeRange(2, IFISH_LIGHTBTN_BYTE)];
|
||||
[self btnImgAtIndex:indexPath withStr:stateString addWithOnImg:imgOnArr
|
||||
addOffArr:imgOffArr];
|
||||
UInt64 mac1=[dataContorl hexToTen:xuan3fmodel.vuPHstatus];
|
||||
|
||||
//float TPlabel=mac/10+(mac%10)*0.1;
|
||||
NSString *lasttime = [NSString stringWithFormat:@"%lld",mac1];
|
||||
self.controBtnImg.image=[self.controBtnImg.image imageWaterMarkWithString:lasttime rect:CGRectMake(140, 60, 60, 60) attribute:@{NSForegroundColorAttributeName:[UIColor redColor],NSFontAttributeName:[UIFont systemFontOfSize:25]}];
|
||||
|
||||
}else if (index == 3){
|
||||
|
||||
NSString*stateString=[xuan3fmodel.constTmep substringWithRange:NSMakeRange(2, IFISH_LIGHTBTN_BYTE)];
|
||||
[self btnImgAtIndex:indexPath withStr:stateString addWithOnImg:imgOnArr
|
||||
addOffArr:imgOffArr];
|
||||
UInt64 mac=[dataContorl hexToTen:xuan3fmodel.heatingTemperature];
|
||||
|
||||
//float TPlabel=mac/10+(mac%10)*0.1;
|
||||
float temp = mac/10.0;
|
||||
NSString *stringTemp = [NSString stringWithFormat:@"%.1f℃",temp];
|
||||
|
||||
self.controBtnImg.image=[ self.controBtnImg.image imageWaterMarkWithString:stringTemp rect:CGRectMake(130, 60, 80, 80) attribute:@{NSForegroundColorAttributeName:[UIColor redColor],NSFontAttributeName:[UIFont systemFontOfSize:25]}];
|
||||
|
||||
}else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user