Commit 065362873872e28cfe45479ce8c7830f6e4874c4

Authored by 王军波
1 parent f7f68bfc

cell image背景色及线条色

LiveVideoCloud/LiveVideoCloud/Classes/Sections/homeSections/View/LVCUGCLivePlayerCell.m
@@ -26,6 +26,8 @@ @@ -26,6 +26,8 @@
26 26
27 @property (nonatomic, strong) UILabel *titleLabel; 27 @property (nonatomic, strong) UILabel *titleLabel;
28 28
  29 +@property (nonatomic, strong) UIView *lineView;
  30 +
29 @end 31 @end
30 32
31 @implementation LVCUGCLivePlayerCell 33 @implementation LVCUGCLivePlayerCell
@@ -42,6 +44,7 @@ @@ -42,6 +44,7 @@
42 [self.contentView addSubview:self.lookLabel]; 44 [self.contentView addSubview:self.lookLabel];
43 [self.contentView addSubview:self.imageView]; 45 [self.contentView addSubview:self.imageView];
44 [self.contentView addSubview:self.titleLabel]; 46 [self.contentView addSubview:self.titleLabel];
  47 + [self.contentView addSubview:self.lineView];
45 } 48 }
46 return self; 49 return self;
47 } 50 }
@@ -117,6 +120,7 @@ @@ -117,6 +120,7 @@
117 _imageView = [[UIImageView alloc] init]; 120 _imageView = [[UIImageView alloc] init];
118 _imageView.frame = CGRectMake(0, 70, SCREEN_WIDTH, SCREEN_WIDTH); 121 _imageView.frame = CGRectMake(0, 70, SCREEN_WIDTH, SCREEN_WIDTH);
119 _imageView.contentMode = UIViewContentModeScaleAspectFill; 122 _imageView.contentMode = UIViewContentModeScaleAspectFill;
  123 + _imageView.backgroundColor = [UIColor colorWithRed:(230/255) green:(241/255) blue:(243/255) alpha:1];
120 _imageView.clipsToBounds = YES; 124 _imageView.clipsToBounds = YES;
121 [_imageView addSubview:self.stateLabel]; 125 [_imageView addSubview:self.stateLabel];
122 } 126 }
@@ -129,6 +133,7 @@ @@ -129,6 +133,7 @@
129 _stateLabel.font = [UIFont systemFontOfSize:13]; 133 _stateLabel.font = [UIFont systemFontOfSize:13];
130 _stateLabel.textAlignment = NSTextAlignmentCenter; 134 _stateLabel.textAlignment = NSTextAlignmentCenter;
131 _stateLabel.textColor = [UIColor whiteColor]; 135 _stateLabel.textColor = [UIColor whiteColor];
  136 + _stateLabel.backgroundColor = [UIColor colorWithRed:(250/255) green:(246/255) blue:(246/255) alpha:0.3];
132 _stateLabel.layer.cornerRadius = 10; 137 _stateLabel.layer.cornerRadius = 10;
133 _stateLabel.layer.masksToBounds = YES; 138 _stateLabel.layer.masksToBounds = YES;
134 _stateLabel.text = @"直播"; 139 _stateLabel.text = @"直播";
@@ -147,4 +152,12 @@ @@ -147,4 +152,12 @@
147 return _titleLabel; 152 return _titleLabel;
148 } 153 }
149 154
  155 +- (UIView *)lineView {
  156 + if (!_lineView) {
  157 + _lineView = [[UIView alloc] initWithFrame:CGRectMake(0, SCREEN_WIDTH + 100, SCREEN_WIDTH, 10)];
  158 + _lineView.backgroundColor = [UIColor colorWithRed:(217/255.0) green:(255/255.0) blue:(239/255.0) alpha:1.0];
  159 + }
  160 + return _lineView;
  161 +}
  162 +
150 @end 163 @end