【发布时间】:2012-12-11 21:20:55
【问题描述】:
这两种说法有什么区别
NSDate *today = [NSDate date];
NSDate *tomarow = [today dateByAddingTimeInterval:60*60*24];
NSDate *nextday = [NSDate dateWithTimeInterval:60*60*24 sinceDate:today];
【问题讨论】:
-
@InderKumarRathore - 我得到的两个语句的值相同。它们之间有什么区别
-
@ray1th 检查我的答案!!
标签: objective-c nsdate nstimeinterval