Revision: 44667
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 15, 2011 17:04 by magickaito
Initial Code
.h file // declare timer NSTimer *countDownTimer; @property (nonatomic, retain) NSTimer *countDownTimer; .m file // stop the timer before it is used // this is useful sometimes if not the timer might be run twice [self.countDownTimer invalidate]; // this will create and RUN/SCHEDULE the timer all at the same time. self.countDownTimer = [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(callBackFunctionHere:) userInfo:nil repeats:NO];
Initial URL
Initial Description
Initial Title
ObjectiveC NSTimer
Initial Tags
Initial Language
Objective C