提交
This commit is contained in:
@@ -260,6 +260,9 @@
|
||||
__block int timeCount = 60;
|
||||
_timer = [QXTimer scheduledTimerWithTimeInterval:1 repeats:YES queue:dispatch_get_main_queue() block:^{
|
||||
timeCount--;
|
||||
if (self == nil) {
|
||||
return;
|
||||
}
|
||||
if (timeCount<=0) {
|
||||
[self->_timer invalidate];
|
||||
self->_codeBtn.userInteractionEnabled = YES;
|
||||
@@ -269,4 +272,10 @@
|
||||
}
|
||||
}];
|
||||
}
|
||||
-(void)dealloc{
|
||||
if (_timer) {
|
||||
[_timer invalidate];
|
||||
_timer = nil;
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user