Quote:
Originally Posted by mnemonic_fx
You might want to look at the usage of NSTimer method:
Code:
- (id)initWithFireDate:(NSDate *)date interval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats
It will fire at a given date, just calculate the date, add the timer to the run loop.
|
so is this a good practice to have this timer running at all time and waiting to the right hour to come?