iphone, objective-c, Timer

iphone, objective-c, Timer

    NSTimer* myTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateInterface:) userInfo:nil repeats:YES];

    }
    – (void) updateInterface:(NSTimer*)theTimer
    {
    //Update interface here
    NSLog(@”Thread checking in…”);
    printf(“Thread checking in…\n”);
    }

    Stop timer

    [myTimer invalidate]