Commit 065362873872e28cfe45479ce8c7830f6e4874c4

Authored by 王军波
1 parent f7f68bfc

cell image背景色及线条色

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