Timer

NSTimer timer =[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timerFired:) userInfo:nil repeats:YES];

-(void)timerFired:(NSTimer *)theTimer
{
    myLabel.text=@"timer";
}
posted @ 2012-12-06 15:29  废弃账号  阅读(107)  评论(0编辑  收藏  举报