2011-10-19 61 views

回答

12

那應該是,

NSTimeInterval MY_EXTRA_TIME = 10; // 10 Seconds 
NSDate *futureDate = [[NSDate date] dateByAddingTimeInterval:MY_EXTRA_TIME]; 
+0

感謝EmptyStack。 – JiteshW

+0

歡迎! J61! – EmptyStack

1

斯威夫特

let delay:NSTimeInterval = 5 
let fireDate = NSDate().dateByAddingTimeInterval(delay)