Facing some problem in setting up future date. Actually I m trying to do this,
NSDate *date = [NSDate date] + MY_EXTRA_TIME;
That should be,
NSTimeInterval MY_EXTRA_TIME = 10; // 10 Seconds
NSDate *futureDate = [[NSDate date] dateByAddingTimeInterval:MY_EXTRA_TIME];
Swift
let delay:NSTimeInterval = 5
let fireDate = NSDate().dateByAddingTimeInterval(delay)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With