Commit 2ac6179d464ec66e0a8746c2647b04a463eb640b
1 parent
ca9f3d3f
设置播放列表播放状态角标
Showing
2 changed files
with
20 additions
and
1 deletions
LiveVideoCloud/LiveVideoCloud/Classes/Sections/LiveSections/Controller/LVCLiveViewController.m
| @@ -410,7 +410,6 @@ | @@ -410,7 +410,6 @@ | ||
| 410 | } | 410 | } |
| 411 | 411 | ||
| 412 | 412 | ||
| 413 | - | ||
| 414 | - (CGPoint)convertToPointOfInterestFromViewCoordinates:(CGPoint)viewCoordinates {// 将UI的坐标转换成相机坐标 | 413 | - (CGPoint)convertToPointOfInterestFromViewCoordinates:(CGPoint)viewCoordinates {// 将UI的坐标转换成相机坐标 |
| 415 | 414 | ||
| 416 | CGPoint pointOfInterest = CGPointMake(.5f, .5f); | 415 | CGPoint pointOfInterest = CGPointMake(.5f, .5f); |
LiveVideoCloud/LiveVideoCloud/Classes/Sections/homeSections/View/LVCUGCLivePlayerCell.m
| @@ -59,6 +59,26 @@ | @@ -59,6 +59,26 @@ | ||
| 59 | NSString *path = [[NSBundle mainBundle] pathForResource:@"timg" ofType:@"jpeg"]; | 59 | NSString *path = [[NSBundle mainBundle] pathForResource:@"timg" ofType:@"jpeg"]; |
| 60 | UIImage *image = [UIImage imageWithContentsOfFile:path]; | 60 | UIImage *image = [UIImage imageWithContentsOfFile:path]; |
| 61 | [_imageView sd_setImageWithURL:[NSURL URLWithString:model.coverImgUrl] placeholderImage:image]; | 61 | [_imageView sd_setImageWithURL:[NSURL URLWithString:model.coverImgUrl] placeholderImage:image]; |
| 62 | + switch ([model.activityStatus intValue]) { | ||
| 63 | + case -2: // 异常 | ||
| 64 | + _stateLabel.text = @"异常"; | ||
| 65 | + break; | ||
| 66 | + case 0: // 未开始 | ||
| 67 | + _stateLabel.text = @"未开始"; | ||
| 68 | + break; | ||
| 69 | + case 1: // 已开始 | ||
| 70 | + _stateLabel.text = @"正直播"; | ||
| 71 | + break; | ||
| 72 | + case 2: // 已结束 | ||
| 73 | + _stateLabel.text = @"已结束"; | ||
| 74 | + break; | ||
| 75 | + case 4: // 已离线 | ||
| 76 | + _stateLabel.text = @"已离线"; | ||
| 77 | + break; | ||
| 78 | + | ||
| 79 | + default: | ||
| 80 | + break; | ||
| 81 | + } | ||
| 62 | } | 82 | } |
| 63 | 83 | ||
| 64 | #pragma mark - SetMethod !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 84 | #pragma mark - SetMethod !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |