|
@@ -24,7 +24,7 @@
|
|
|
|
|
|
@interface ClassTitleView ()
|
|
|
|
|
|
-@property (nonatomic, strong) UILabel *timeLable;
|
|
|
+//@property (nonatomic, strong) UILabel *timeLable;
|
|
|
@property (nonatomic, strong) NSTimer *timeTimer;
|
|
|
@property (nonatomic, strong) NSMutableArray *buttonArray;
|
|
|
@property (nonatomic, strong) NSArray *buttonImageArray;
|
|
@@ -58,12 +58,12 @@
|
|
|
|
|
|
- (void)addSubviews {
|
|
|
[self addSubview:self.signalImageView];
|
|
|
- [self addSubview:self.timeLable];
|
|
|
+// [self addSubview:self.timeLable];
|
|
|
[self addSubview:self.switchLineBtn];
|
|
|
[self addSubview:self.switchCameraBtn];
|
|
|
[self addSubview:self.microphoneBtn];
|
|
|
[self addSubview:self.cameraBtn];
|
|
|
- [self addSubview:self.onShowLabel];
|
|
|
+// [self addSubview:self.onShowLabel];
|
|
|
|
|
|
[self addSubview:self.hangupBtn];
|
|
|
CGFloat topOffset = (self.bounds.size.height - TButtonWidth) / 2.0;
|
|
@@ -74,16 +74,16 @@
|
|
|
make.width.mas_equalTo(TSignalImageViewWidth);
|
|
|
make.height.mas_equalTo(TSignalImageViewWidth);
|
|
|
}];
|
|
|
- [self.timeLable mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.equalTo(self.signalImageView.mas_right).offset(20);
|
|
|
- make.centerY.equalTo(self.mas_centerY);
|
|
|
- make.width.equalTo(@TTimeLableWidth);
|
|
|
- make.height.equalTo(@TTimeLableHeight);
|
|
|
- }];
|
|
|
+// [self.timeLable mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+// make.left.equalTo(self.signalImageView.mas_right).offset(20);
|
|
|
+// make.centerY.equalTo(self.mas_centerY);
|
|
|
+// make.width.equalTo(@TTimeLableWidth);
|
|
|
+// make.height.equalTo(@TTimeLableHeight);
|
|
|
+// }];
|
|
|
|
|
|
// 切换线路
|
|
|
[self.switchLineBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.mas_equalTo(self.timeLable.mas_right).offset(10);
|
|
|
+ make.left.mas_equalTo(self.signalImageView.mas_right).offset(20);
|
|
|
make.width.mas_equalTo(TButtonWidth);
|
|
|
make.height.mas_equalTo(TButtonWidth);
|
|
|
make.top.mas_equalTo(self.mas_top).offset(topOffset);
|
|
@@ -112,12 +112,12 @@
|
|
|
}];
|
|
|
|
|
|
// 演示label
|
|
|
- [self.onShowLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.mas_equalTo(self.cameraBtn.mas_right).offset(TButtonSpace * 2);
|
|
|
- make.width.mas_equalTo(120);
|
|
|
- make.height.mas_equalTo(TButtonWidth);
|
|
|
- make.top.mas_equalTo(self.mas_top).offset(topOffset);
|
|
|
- }];
|
|
|
+// [self.onShowLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+// make.left.mas_equalTo(self.cameraBtn.mas_right).offset(TButtonSpace * 2);
|
|
|
+// make.width.mas_equalTo(120);
|
|
|
+// make.height.mas_equalTo(TButtonWidth);
|
|
|
+// make.top.mas_equalTo(self.mas_top).offset(topOffset);
|
|
|
+// }];
|
|
|
|
|
|
// 退出
|
|
|
[self.hangupBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
@@ -164,8 +164,8 @@
|
|
|
_duration = duration;
|
|
|
if (_duration < 300 && self.isCountDown == NO) {
|
|
|
self.isCountDown = YES;
|
|
|
- self.timeLable.textColor = HexRGB(0x2DC7AA);
|
|
|
- [self.timeLable.layer addAnimation:[self opacityForeverAnimation:0.5f] forKey:nil];
|
|
|
+// self.timeLable.textColor = HexRGB(0x2DC7AA);
|
|
|
+// [self.timeLable.layer addAnimation:[self opacityForeverAnimation:0.5f] forKey:nil];
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -182,7 +182,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- self.timeLable.text = [self formatJoinTime];
|
|
|
+// self.timeLable.text = [self formatJoinTime];
|
|
|
if (self.delegate && [self.delegate respondsToSelector:@selector(refreshClassStatus)]) {
|
|
|
[self.delegate refreshClassStatus];
|
|
|
}
|
|
@@ -277,14 +277,14 @@
|
|
|
return _signalImageView;
|
|
|
}
|
|
|
|
|
|
-- (UILabel *)timeLable {
|
|
|
- if(!_timeLable) {
|
|
|
- _timeLable = [[UILabel alloc] init];
|
|
|
- _timeLable.font = [UIFont systemFontOfSize:14];
|
|
|
- _timeLable.textColor = [UIColor colorWithHexString:@"FFFFFF" alpha:1];
|
|
|
- }
|
|
|
- return _timeLable;
|
|
|
-}
|
|
|
+//- (UILabel *)timeLable {
|
|
|
+// if(!_timeLable) {
|
|
|
+// _timeLable = [[UILabel alloc] init];
|
|
|
+// _timeLable.font = [UIFont systemFontOfSize:14];
|
|
|
+// _timeLable.textColor = [UIColor colorWithHexString:@"FFFFFF" alpha:1];
|
|
|
+// }
|
|
|
+// return _timeLable;
|
|
|
+//}
|
|
|
|
|
|
- (UIButton *)switchLineBtn {
|
|
|
if (!_switchLineBtn) {
|
|
@@ -330,15 +330,15 @@
|
|
|
return _cameraBtn;
|
|
|
}
|
|
|
|
|
|
-- (UILabel *)onShowLabel {
|
|
|
- if (!_onShowLabel) {
|
|
|
- _onShowLabel = [[UILabel alloc] init];
|
|
|
- _onShowLabel.textColor = HexRGB(0xf9f9f9);
|
|
|
- _onShowLabel.font = [UIFont systemFontOfSize:14.0f];
|
|
|
- _onShowLabel.text = @"您已进入演示模式";
|
|
|
- }
|
|
|
- return _onShowLabel;
|
|
|
-}
|
|
|
+//- (UILabel *)onShowLabel {
|
|
|
+// if (!_onShowLabel) {
|
|
|
+// _onShowLabel = [[UILabel alloc] init];
|
|
|
+// _onShowLabel.textColor = HexRGB(0xf9f9f9);
|
|
|
+// _onShowLabel.font = [UIFont systemFontOfSize:14.0f];
|
|
|
+// _onShowLabel.text = @"您已进入演示模式";
|
|
|
+// }
|
|
|
+// return _onShowLabel;
|
|
|
+//}
|
|
|
|
|
|
|
|
|
- (UIButton *)hangupBtn {
|