1
//Gets the time right now
NSDate *now = [NSDate date];
//Stores the difference in seconds between when the test was started and now.
NSTimeInterval interval = [self.expires timeIntervalSinceDate:now];
if (interval == 0) {
...
}
爲什麼條件不會成立的任何原因?檢查NSTimeInterval是否等於0
謝謝。