Commit 4113c7fa95bd4ff6d30af6c2ddb2ac9a5a4b509d

Authored by yanglingyu
1 parent 0775be41

大字体适配

CNLiveCServiceModule.podspec
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveCServiceModule' 10 s.name = 'CNLiveCServiceModule'
11 - s.version = '0.0.20' 11 + s.version = '0.0.21'
12 s.summary = '我的服务内容' 12 s.summary = '我的服务内容'
13 13
14 # This description is used to generate tags and improve search results. 14 # This description is used to generate tags and improve search results.
CNLiveCServiceModule/Classes/View/CNLiveCycleCell.m
@@ -87,13 +87,13 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; @@ -87,13 +87,13 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell";
87 }else if (indexPath.row == self.dataSource.count){ 87 }else if (indexPath.row == self.dataSource.count){
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(11);
90 [cell.titleLabel sizeToFit]; 91 [cell.titleLabel sizeToFit];
91 - [cell setNeedsLayout];  
92 }else{ 92 }else{
93 [cell.logoView setImage:[UIImage loadCServiceBundle:@"service_more"]]; 93 [cell.logoView setImage:[UIImage loadCServiceBundle:@"service_more"]];
94 cell.titleLabel.text = @"更多服务"; 94 cell.titleLabel.text = @"更多服务";
  95 + cell.titleLabel.font = UIFontCNMake(11);
95 [cell.titleLabel sizeToFit]; 96 [cell.titleLabel sizeToFit];
96 - [cell setNeedsLayout];  
97 } 97 }
98 98
99 return cell; 99 return cell;
CNLiveCServiceModule/Classes/View/CNLiveSearchHeaderView.m
@@ -42,12 +42,13 @@ @@ -42,12 +42,13 @@
42 #pragma mark - Setting&&Getting 42 #pragma mark - Setting&&Getting
43 - (void)setModel:(CNLiveSearchHotsModel *)model 43 - (void)setModel:(CNLiveSearchHotsModel *)model
44 { 44 {
  45 + _titlelabel.font = UIFontBoldCNMake(14);
45 self.lineView.hidden = YES; 46 self.lineView.hidden = YES;
46 if (_type == CNServiceHeaderTypeService || _type == CNServiceHeaderTypeCategoryId) { 47 if (_type == CNServiceHeaderTypeService || _type == CNServiceHeaderTypeCategoryId) {
47 _titlelabel.textColor = CNLiveColorWithHexString(@"#333333"); 48 _titlelabel.textColor = CNLiveColorWithHexString(@"#333333");
48 - _titlelabel.font = UIFontBoldMake(17); 49 + _titlelabel.font = UIFontBoldCNMake(17);
49 }else{ 50 }else{
50 - _titlelabel.font = UIFontBoldMake(14); 51 + _titlelabel.font = UIFontBoldCNMake(14);
51 _titlelabel.textColor = CNLiveColorWithHexString(@"#999999"); 52 _titlelabel.textColor = CNLiveColorWithHexString(@"#999999");
52 } 53 }
53 self.backgroundColor = kWhiteColor; 54 self.backgroundColor = kWhiteColor;
@@ -79,7 +80,7 @@ @@ -79,7 +80,7 @@
79 { 80 {
80 if (!_titlelabel) { 81 if (!_titlelabel) {
81 _titlelabel = [[UILabel alloc] init]; 82 _titlelabel = [[UILabel alloc] init];
82 - _titlelabel.font = UIFontBoldMake(14); 83 + _titlelabel.font = UIFontBoldCNMake(14);
83 _titlelabel.textColor = CNLiveColorWithHexString(@"#999999"); 84 _titlelabel.textColor = CNLiveColorWithHexString(@"#999999");
84 } 85 }
85 return _titlelabel; 86 return _titlelabel;
CNLiveCServiceModule/Classes/View/CNLiveSearchHistoryCell.m
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 { 41 {
42 if (!_history) { 42 if (!_history) {
43 _history = [[UILabel alloc] init]; 43 _history = [[UILabel alloc] init];
44 - _history.font = UIFontCNMake(11); 44 + _history.font = UIFontCNMake(13);
45 _history.textColor = CNLiveColorWithHexString(@"#4A4A4A"); 45 _history.textColor = CNLiveColorWithHexString(@"#4A4A4A");
46 _history.textAlignment = NSTextAlignmentCenter; 46 _history.textAlignment = NSTextAlignmentCenter;
47 } 47 }
CNLiveCServiceModule/Classes/View/CNLiveSearchHotsCell.m
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 if (!_titleLabel) { 58 if (!_titleLabel) {
59 _titleLabel = [[UILabel alloc] init]; 59 _titleLabel = [[UILabel alloc] init];
60 _titleLabel.lineBreakMode = NSLineBreakByTruncatingMiddle; 60 _titleLabel.lineBreakMode = NSLineBreakByTruncatingMiddle;
61 - _titleLabel.font = UIFontCNMake(11); 61 + _titleLabel.font = UIFontCNMake(13);
62 _titleLabel.textColor = CNLiveColorWithHexString(@"#4A4A4A"); 62 _titleLabel.textColor = CNLiveColorWithHexString(@"#4A4A4A");
63 _titleLabel.textAlignment = NSTextAlignmentCenter; 63 _titleLabel.textAlignment = NSTextAlignmentCenter;
64 } 64 }
CNLiveCServiceModule/Classes/View/CNLiveVideoRecommendCell.m
@@ -57,7 +57,7 @@ @@ -57,7 +57,7 @@
57 #pragma mark - Setting&&getting 57 #pragma mark - Setting&&getting
58 - (void)setModel:(CnLivePageContentModel *)model 58 - (void)setModel:(CnLivePageContentModel *)model
59 { 59 {
60 - _titleLabel.font = UIFontCNMake(11); 60 + _titleLabel.font = UIFontCNMake(13);
61 _price.font = UIFontCNMake(11); 61 _price.font = UIFontCNMake(11);
62 _oldPrice.font = UIFontCNMake(9); 62 _oldPrice.font = UIFontCNMake(9);
63 _lookNum.titleLabel.font = UIFontCNMake(11); 63 _lookNum.titleLabel.font = UIFontCNMake(11);
@@ -160,7 +160,7 @@ @@ -160,7 +160,7 @@
160 { 160 {
161 if (!_titleLabel) { 161 if (!_titleLabel) {
162 _titleLabel = [[UILabel alloc] init]; 162 _titleLabel = [[UILabel alloc] init];
163 - _titleLabel.font = UIFontCNMake(11); 163 + _titleLabel.font = UIFontCNMake(13);
164 _titleLabel.textColor = CNLiveColorWithHexString(@"#333333"); 164 _titleLabel.textColor = CNLiveColorWithHexString(@"#333333");
165 _titleLabel.textAlignment = NSTextAlignmentLeft; 165 _titleLabel.textAlignment = NSTextAlignmentLeft;
166 } 166 }
CNLiveCServiceModule/Classes/ViewController/CNLiveServiceVC.m
@@ -111,6 +111,7 @@ static NSString *CNGoodsOrVideoheaderID = @"CNLiveGoodsOrVideoHeaderView"; @@ -111,6 +111,7 @@ static NSString *CNGoodsOrVideoheaderID = @"CNLiveGoodsOrVideoHeaderView";
111 { 111 {
112 [super viewWillAppear:animated]; 112 [super viewWillAppear:animated];
113 self.navigationController.navigationBarHidden = YES; 113 self.navigationController.navigationBarHidden = YES;
  114 + [self.listCollectionView reloadData];
114 } 115 }
115 116
116 - (void)viewWillDisappear:(BOOL)animated 117 - (void)viewWillDisappear:(BOOL)animated