利用
[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(timerFireMethod:) userInfo:nil repeats:YES];
- (void)timerFireMethod:(NSTimer *)theTimer
{
_timeLab.text=[NSString stringWithFormat:@"%d秒后重新发送",time];
time--;
if (time==0) {
[theTimer invalidate];
_timeLab.hidden=YES;
_authCode.hidden=NO;
}
}
-- 完成倒计时