Authored by 盖剑秋

Fix UI issues.

@@ -266,14 +266,16 @@ @@ -266,14 +266,16 @@
266 266
267 _totalTime ++; 267 _totalTime ++;
268 268
  269 + NSInteger hours = _totalTime/3600;
269 NSInteger seconds = _totalTime%60; 270 NSInteger seconds = _totalTime%60;
270 - NSInteger minutes = _totalTime/60; 271 + NSInteger minutes = (_totalTime/60)%60;
271 272
272 - 273 + NSString *hourStr = hours<10?[NSString stringWithFormat:@"0%ld",hours]:[NSString stringWithFormat:@"%ld",hours];
273 NSString *secondStr = seconds<10?[NSString stringWithFormat:@"0%ld",seconds]:[NSString stringWithFormat:@"%ld",seconds]; 274 NSString *secondStr = seconds<10?[NSString stringWithFormat:@"0%ld",seconds]:[NSString stringWithFormat:@"%ld",seconds];
274 NSString *minuteStr = minutes<10?[NSString stringWithFormat:@"0%ld",minutes]:[NSString stringWithFormat:@"%ld",minutes]; 275 NSString *minuteStr = minutes<10?[NSString stringWithFormat:@"0%ld",minutes]:[NSString stringWithFormat:@"%ld",minutes];
275 276
276 - _timeLabel.text = [NSString stringWithFormat:@"%@:%@",minuteStr,secondStr]; 277 +
  278 + _timeLabel.text = [NSString stringWithFormat:@"%@:%@:%@",hourStr,minuteStr,secondStr];
277 } 279 }
278 280
279 -(BOOL)startRtmp{ 281 -(BOOL)startRtmp{
@@ -656,6 +658,10 @@ @@ -656,6 +658,10 @@
656 _beautyButton.selected = NO; 658 _beautyButton.selected = NO;
657 _hdButton.selected = NO; 659 _hdButton.selected = NO;
658 _channelButton.selected = NO; 660 _channelButton.selected = NO;
  661 + _cover.hidden = YES;
  662 + _logViewEvt.hidden = YES;
  663 + _statusView.hidden = YES;
  664 + _logButton.selected = NO;
659 } 665 }
660 666
661 - (void) touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event 667 - (void) touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
@@ -1062,7 +1068,7 @@ @@ -1062,7 +1068,7 @@
1062 _timeLabel.font = [UIFont systemFontOfSize:10]; 1068 _timeLabel.font = [UIFont systemFontOfSize:10];
1063 _timeLabel.textColor = [UIColor whiteColor]; 1069 _timeLabel.textColor = [UIColor whiteColor];
1064 [_infoPannel addSubview:_timeLabel]; 1070 [_infoPannel addSubview:_timeLabel];
1065 - _timeLabel.text = @"00:00"; 1071 + _timeLabel.text = @"00:00:00";
1066 1072
1067 [_infoPannel autoPinEdgeToSuperviewEdge:ALEdgeTop withInset:15]; 1073 [_infoPannel autoPinEdgeToSuperviewEdge:ALEdgeTop withInset:15];
1068 [_infoPannel autoPinEdgeToSuperviewEdge:ALEdgeLeft withInset:15]; 1074 [_infoPannel autoPinEdgeToSuperviewEdge:ALEdgeLeft withInset:15];
@@ -223,7 +223,7 @@ @@ -223,7 +223,7 @@
223 if (_barrageTableView == nil) { 223 if (_barrageTableView == nil) {
224 _barrageTableView = [[YH_BarrageTableView alloc]init]; 224 _barrageTableView = [[YH_BarrageTableView alloc]init];
225 _barrageTableView.barrageScrollingDelegate = self; 225 _barrageTableView.barrageScrollingDelegate = self;
226 - self.barrageTableView.backgroundColor = [UIColor colorWithWhite:1 alpha:0.5]; 226 + self.barrageTableView.backgroundColor = [UIColor clearColor];
227 227
228 } 228 }
229 229