|
@@ -25,7 +25,7 @@
|
|
|
@interface ClassTitleView ()
|
|
|
|
|
|
//@property (nonatomic, strong) UILabel *timeLable;
|
|
|
-//@property (nonatomic, strong) NSTimer *timeTimer;
|
|
|
+@property (nonatomic, strong) NSTimer *timeTimer;
|
|
|
@property (nonatomic, strong) NSMutableArray *buttonArray;
|
|
|
@property (nonatomic, strong) NSArray *buttonImageArray;
|
|
|
@property (nonatomic, strong) NSArray *buttonHighlightedImageArray;
|
|
@@ -51,7 +51,7 @@
|
|
|
self.isCountDown = NO;
|
|
|
self.duration = [ClassroomService sharedService].currentRoom.surplusTime;
|
|
|
[self refreshTitleView];
|
|
|
-// [self.timeTimer setFireDate:[NSDate distantPast]];
|
|
|
+ [self.timeTimer setFireDate:[NSDate distantPast]];
|
|
|
}
|
|
|
return self;
|
|
|
}
|
|
@@ -190,13 +190,13 @@
|
|
|
|
|
|
|
|
|
- (void)stopDurationTimer {
|
|
|
- /*
|
|
|
+
|
|
|
[self.timeTimer setFireDate:[NSDate distantFuture]];
|
|
|
if (self.timeTimer.valid) {
|
|
|
[self.timeTimer invalidate];
|
|
|
self.timeTimer = nil;
|
|
|
}
|
|
|
- */
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -362,7 +362,7 @@
|
|
|
return _buttonArray;
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
+
|
|
|
- (NSTimer *)timeTimer {
|
|
|
if (_timeTimer == nil) {
|
|
|
|
|
@@ -376,7 +376,7 @@
|
|
|
|
|
|
return _timeTimer;
|
|
|
}
|
|
|
-*/
|
|
|
+
|
|
|
- (void)setNetStatus:(NetWorkingStatus)netStatus {
|
|
|
_netStatus = netStatus;
|
|
|
NSString *displayImg = @"network_status1";
|