Commit 81d9ee1ea597547989f9756d394bf2f4fec730b1

Authored by yanglingyu
1 parent bf168e8c

解决12系统适配bug

CNLiveCServiceModule/Classes/View/CNLiveCycleCell.m
@@ -88,12 +88,10 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; @@ -88,12 +88,10 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell";
88 [cell.logoView setImage:[UIImage loadCServiceBundle:@"service_mine"]]; 88 [cell.logoView setImage:[UIImage loadCServiceBundle:@"service_mine"]];
89 cell.titleLabel.text = @"我的服务"; 89 cell.titleLabel.text = @"我的服务";
90 cell.titleLabel.font = UIFontCNMake(12); 90 cell.titleLabel.font = UIFontCNMake(12);
91 - [cell.titleLabel sizeToFit];  
92 }else{ 91 }else{
93 [cell.logoView setImage:[UIImage loadCServiceBundle:@"service_more"]]; 92 [cell.logoView setImage:[UIImage loadCServiceBundle:@"service_more"]];
94 cell.titleLabel.text = @"更多服务"; 93 cell.titleLabel.text = @"更多服务";
95 cell.titleLabel.font = UIFontCNMake(12); 94 cell.titleLabel.font = UIFontCNMake(12);
96 - [cell.titleLabel sizeToFit];  
97 } 95 }
98 96
99 return cell; 97 return cell;
CNLiveCServiceModule/Classes/View/CNLiveSearchHotsCell.m
@@ -42,7 +42,6 @@ @@ -42,7 +42,6 @@
42 _model = model; 42 _model = model;
43 [self.logoView sd_setImageWithURL:[NSURL URLWithString:model.icon]]; 43 [self.logoView sd_setImageWithURL:[NSURL URLWithString:model.icon]];
44 self.titleLabel.text = model.title; 44 self.titleLabel.text = model.title;
45 - [self.titleLabel sizeToFit];  
46 } 45 }
47 - (UIImageView *)logoView{ 46 - (UIImageView *)logoView{
48 if (!_logoView) { 47 if (!_logoView) {
CNLiveCServiceModule/Classes/View/CNLiveServiceOrLookCell.m
@@ -57,7 +57,6 @@ @@ -57,7 +57,6 @@
57 [string addAttribute:NSFontAttributeName value:UIFontCNMake(13) range:NSMakeRange(0, model.title.length)]; 57 [string addAttribute:NSFontAttributeName value:UIFontCNMake(13) range:NSMakeRange(0, model.title.length)];
58 [string addAttribute:NSForegroundColorAttributeName value:CNLiveColorWithHexString(@"#333333") range:NSMakeRange(0, model.title.length)]; 58 [string addAttribute:NSForegroundColorAttributeName value:CNLiveColorWithHexString(@"#333333") range:NSMakeRange(0, model.title.length)];
59 self.titleLabel.attributedText =string; 59 self.titleLabel.attributedText =string;
60 - [self.titleLabel sizeToFit];  
61 } 60 }
62 - (void)setType:(CNLiveCellShowType)type 61 - (void)setType:(CNLiveCellShowType)type
63 { 62 {