Sorry marianio but that's not the correct approach. You should use NSDate's timeIntervalSinceDate method. When you start your timer, set an ivar named startDate. In the timer method, call timeIntervalSinceDate passing in startDate on the current date. Then, assuming mariano's way of calculating the variables are correct, use his code on the returned NSTimeInterval.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.
New app - See screenshots and details at www.globaclock.com.
If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
|