Commit c73d6d38c110ba5f7be9aa0057fe93d03f054b7e

Authored by 王军波
1 parent 508d3027

主播状态返回按钮,切换播放背景色换成黑色

LiveVideoCloud/LiveVideoCloud/Classes/Sections/homeSections/Controller/LVCUGCLivePlayerController.m
... ... @@ -168,7 +168,6 @@
168 168 // 停止后的视图,拿到自己的加载图来显示
169 169 [_viewSecond addSubview:_secondLoadView];
170 170  
171   - [_viewSecond removeGestureRecognizer:_pan];
172 171 _viewOne.frame = CGRectMake(0, SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT);
173 172 _tempView = _viewOne;
174 173 _viewOne = _viewSecond;
... ... @@ -381,12 +380,19 @@
381 380  
382 381 }
383 382  
  383 +#pragma mark - Button Action !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  384 +- (void)backToList {
  385 +
  386 + [self.navigationController popViewControllerAnimated:YES];
  387 +}
  388 +
384 389 #pragma mark - GetMethod !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
385 390 - (LVCUGCBackgroundView *)bgView {
386 391  
387 392 if (!_bgView) {
388 393 _bgView = [[LVCUGCBackgroundView alloc] initWithFrame:self.view.bounds];
389 394 _bgView.hidden = YES;
  395 + [_bgView.backButton addTarget:self action:@selector(backToList) forControlEvents:UIControlEventTouchUpInside];
390 396 }
391 397 return _bgView;
392 398 }
... ... @@ -394,7 +400,7 @@
394 400 - (UIView *)viewOne {
395 401 if (!_viewOne) {
396 402 _viewOne = [[UIView alloc] initWithFrame:CGRectMake(0, -SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT)];
397   - _viewOne.backgroundColor = [UIColor orangeColor];
  403 + _viewOne.backgroundColor = [UIColor blackColor];
398 404 _firstLoadView = [[LVCUGCPlayerLoadingView alloc] initWithFrame:self.view.bounds];
399 405 [_viewOne addSubview:_firstLoadView];
400 406 _oneY = -SCREEN_HEIGHT;
... ... @@ -405,7 +411,7 @@
405 411 - (UIView *)viewSecond {
406 412 if (!_viewSecond) {
407 413 _viewSecond = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
408   - _viewSecond.backgroundColor = [UIColor redColor];
  414 + _viewSecond.backgroundColor = [UIColor blackColor];
409 415 _secondLoadView = [[LVCUGCPlayerLoadingView alloc] initWithFrame:self.view.bounds];
410 416 [_viewSecond addSubview:_secondLoadView];
411 417 _SecondY = 0;
... ... @@ -416,7 +422,7 @@
416 422 - (UIView *)viewThird {
417 423 if (!_viewThird) {
418 424 _viewThird = [[UIView alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT)];
419   - _viewThird.backgroundColor = [UIColor blueColor];
  425 + _viewThird.backgroundColor = [UIColor blackColor];
420 426 _thirdLoadView = [[LVCUGCPlayerLoadingView alloc] initWithFrame:self.view.bounds];
421 427 [_viewThird addSubview:_thirdLoadView];
422 428 _ThirdY = SCREEN_HEIGHT;
... ...