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
谢谢。