离线模式下图片不显示的问题

This commit is contained in:
xuemh 2018-06-14 12:45:34 +08:00
parent c12010e06a
commit 1b828531cc
2 changed files with 3 additions and 4 deletions

View File

@ -70,7 +70,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>479</string> <string>480</string>
<key>ITSAppUsesNonExemptEncryption</key> <key>ITSAppUsesNonExemptEncryption</key>
<false/> <false/>
<key>LSApplicationCategoryType</key> <key>LSApplicationCategoryType</key>

View File

@ -185,7 +185,7 @@
} }
NSArray *nameArr=@[@"PFLight1_off",@"PFLight1_off",@"ChongLang_off",@"O2_off",@"",@"PFkilLlight_off",@"JiaReBang"]; NSArray *nameArr=@[@"PFLight1_off",@"PFLight1_off",@"ChongLang_off",@"O2_off",@"PFkilLlight_off",@"JiaReBang"];
CGFloat btnControlWith = 70; CGFloat btnControlWith = 70;
CGFloat btnControlPlace = (kScreenSize.width - 3*btnControlWith )/4; CGFloat btnControlPlace = (kScreenSize.width - 3*btnControlWith )/4;
@ -243,7 +243,6 @@
self.button.tag= 600003+i; self.button.tag= 600003+i;
[self.button addTarget:self action:@selector(songNuoBDBtnClick:) forControlEvents:UIControlEventTouchUpInside]; [self.button addTarget:self action:@selector(songNuoBDBtnClick:) forControlEvents:UIControlEventTouchUpInside];
if (i == 2) { if (i == 2) {
[self.button setImage:[UIImage imageNamed:nameArr.lastObject] forState:UIControlStateNormal];
UILabel *tempLbl = [UILabel new]; UILabel *tempLbl = [UILabel new];
[self.button addSubview:tempLbl]; [self.button addSubview:tempLbl];
tempLbl.tag = 1; tempLbl.tag = 1;
@ -271,7 +270,7 @@
self.airPumpName = textLbl; self.airPumpName = textLbl;
}else if (i==1){ }else if (i==1){
self.nuoGuiDengBtn = self.button; // self.nuoGuiDengBtn = self.button;
self.guiDengName = textLbl; self.guiDengName = textLbl;
}else if (i==2){ }else if (i==2){