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であるかどうかを確認します。
ありがとうございました。