Commit efc9d39da62819e90e3c9d8cb1ec8f7353e42537

Authored by yanglingyu
1 parent 215d3d0f

变色字体修改

CNLiveScioLive/Pages/Home/新闻详情/OldController/MoreSpecialViewController.m
... ... @@ -292,6 +292,20 @@
292 292 if ([text isEqualToString:@"<null>"]) {
293 293 text = @"";
294 294 }
  295 + NSString * titleColor = _dic[@"titleColor"];
  296 + if (titleColor&&![titleColor isEqualToString:@""]) {
  297 + cell.titleLabel.textColor = [UIColor colorWithHexString:_dic[@"titleColor"]];
  298 + }else
  299 + {
  300 + cell.titleLabel.textColor = HEXCOLOR(0x333333);
  301 + }
  302 + NSString *tagsColor = _dic[@"tagsColor"];
  303 + if (tagsColor&&![tagsColor isEqualToString:@""]) {
  304 + cell.tagsLabel.backgroundColor = [UIColor colorWithHexString:_dic[@"tagsColor"]];
  305 + }else
  306 + {
  307 + cell.tagsLabel.backgroundColor = HEXCOLOR(0x195AC9);
  308 + }
295 309 if ([text length] > 0) {
296 310 [cell.tagsLabel setHidden:NO];
297 311 [cell.tagsLabel setText:text];
... ... @@ -315,6 +329,20 @@
315 329 if ([text isEqualToString:@"<null>"]) {
316 330 text = @"";
317 331 }
  332 + NSString * titleColor = _dic[@"titleColor"];
  333 + if (titleColor&&![titleColor isEqualToString:@""]) {
  334 + cell.titleLabel.textColor = [UIColor colorWithHexString:_dic[@"titleColor"]];
  335 + }else
  336 + {
  337 + cell.titleLabel.textColor = HEXCOLOR(0x333333);
  338 + }
  339 + NSString *tagsColor = _dic[@"tagsColor"];
  340 + if (tagsColor&&![tagsColor isEqualToString:@""]) {
  341 + cell.tagsLabel.backgroundColor = [UIColor colorWithHexString:_dic[@"tagsColor"]];
  342 + }else
  343 + {
  344 + cell.tagsLabel.backgroundColor = HEXCOLOR(0x195AC9);
  345 + }
318 346 if ([text length] > 0) {
319 347 [cell.tagsLabel setHidden:NO];
320 348 [cell.tagsLabel setText:text];
... ... @@ -337,6 +365,20 @@
337 365 if ([text isEqualToString:@"<null>"]) {
338 366 text = @"";
339 367 }
  368 + NSString * titleColor = _dic[@"titleColor"];
  369 + if (titleColor&&![titleColor isEqualToString:@""]) {
  370 + cell.titleLabel.textColor = [UIColor colorWithHexString:_dic[@"titleColor"]];
  371 + }else
  372 + {
  373 + cell.titleLabel.textColor = HEXCOLOR(0x333333);
  374 + }
  375 + NSString *tagsColor = _dic[@"tagsColor"];
  376 + if (tagsColor&&![tagsColor isEqualToString:@""]) {
  377 + cell.tagsLabel.backgroundColor = [UIColor colorWithHexString:_dic[@"tagsColor"]];
  378 + }else
  379 + {
  380 + cell.tagsLabel.backgroundColor = HEXCOLOR(0x195AC9);
  381 + }
340 382 if ([text length] > 0) {
341 383 [cell.tagsLabel setHidden:NO];
342 384 [cell.tagsLabel setText:text];
... ...
CNLiveScioLive/Pages/Home/新闻详情/OldController/SCIOSpecialViewController.m
... ... @@ -480,6 +480,21 @@
480 480 if ([text isEqualToString:@"<null>"]) {
481 481 text = @"";
482 482 }
  483 +
  484 + NSString * titleColor = _dic[@"titleColor"];
  485 + if (titleColor&&![titleColor isEqualToString:@""]) {
  486 + cell.titleLabel.textColor = [UIColor colorWithHexString:_dic[@"titleColor"]];
  487 + }else
  488 + {
  489 + cell.titleLabel.textColor = HEXCOLOR(0x333333);
  490 + }
  491 + NSString *tagsColor = _dic[@"tagsColor"];
  492 + if (tagsColor&&![tagsColor isEqualToString:@""]) {
  493 + cell.tagsLabel.backgroundColor = [UIColor colorWithHexString:_dic[@"tagsColor"]];
  494 + }else
  495 + {
  496 + cell.tagsLabel.backgroundColor = HEXCOLOR(0x195AC9);
  497 + }
483 498 if ([text length] > 0) {
484 499 [cell.tagsLabel setHidden:NO];
485 500 [cell.tagsLabel setText:text];
... ... @@ -502,6 +517,21 @@
502 517 if ([text isEqualToString:@"<null>"]) {
503 518 text = @"";
504 519 }
  520 +
  521 + NSString * titleColor = _dic[@"titleColor"];
  522 + if (titleColor&&![titleColor isEqualToString:@""]) {
  523 + cell.titleLabel.textColor = [UIColor colorWithHexString:_dic[@"titleColor"]];
  524 + }else
  525 + {
  526 + cell.titleLabel.textColor = HEXCOLOR(0x333333);
  527 + }
  528 + NSString *tagsColor = _dic[@"tagsColor"];
  529 + if (tagsColor&&![tagsColor isEqualToString:@""]) {
  530 + cell.tagsLabel.backgroundColor = [UIColor colorWithHexString:_dic[@"tagsColor"]];
  531 + }else
  532 + {
  533 + cell.tagsLabel.backgroundColor = HEXCOLOR(0x195AC9);
  534 + }
505 535 if ([text length] > 0) {
506 536 [cell.tagsLabel setHidden:NO];
507 537 [cell.tagsLabel setText:text];
... ...