Commit 0e983e5a39d6ea9f5b1f3ca0485973ed06228bda
1 parent
493592d2
no message
Showing
1 changed file
with
5 additions
and
6 deletions
CNLiveMineModule/Classes/View/CNLiveMineCell.m
| ... | ... | @@ -66,11 +66,6 @@ |
| 66 | 66 | make.bottom.equalTo(self.contentView.mas_bottom).with.offset(-self.model.margin); |
| 67 | 67 | |
| 68 | 68 | }]; |
| 69 | - _bgView.layer.masksToBounds = NO; | |
| 70 | - _bgView.layer.shadowColor = [UIColor blackColor].CGColor; | |
| 71 | - _bgView.layer.shadowOffset = CGSizeMake(0, 4); //0,0围绕阴影四周 0,4向下有4个像素的偏移 | |
| 72 | - _bgView.layer.shadowOpacity = 0.1; //设置阴影透明度 | |
| 73 | - _bgView.layer.shadowRadius = 5; //设置阴影圆角 | |
| 74 | 69 | |
| 75 | 70 | switch (model.type) { |
| 76 | 71 | case CNLiveMineCellTypeOrder: |
| ... | ... | @@ -210,7 +205,11 @@ |
| 210 | 205 | if (!_bgView) { |
| 211 | 206 | _bgView = [[UIView alloc] init]; |
| 212 | 207 | _bgView.backgroundColor = [UIColor whiteColor]; |
| 213 | - _bgView.layer.masksToBounds = YES; | |
| 208 | + _bgView.layer.masksToBounds = NO; | |
| 209 | + _bgView.layer.shadowColor = [UIColor blackColor].CGColor; | |
| 210 | + _bgView.layer.shadowOffset = CGSizeMake(0, 4); //0,0围绕阴影四周 0,4向下有4个像素的偏移 | |
| 211 | + _bgView.layer.shadowOpacity = 0.1; //设置阴影透明度 | |
| 212 | + _bgView.layer.shadowRadius = 5; //设置阴影圆角 | |
| 214 | 213 | _bgView.layer.cornerRadius = 5; |
| 215 | 214 | } |
| 216 | 215 | return _bgView; | ... | ... |