how to run countdown with dates to count days in iphone sdk [closed]
i need to countdown dates not times
how to run countdown with dates to count days in iphone sdk
NSDate future = [NSDate dateWithString:@"2010-08-30 00:00:00 +0000"];
NSDate past = [NSDate dateWithString:@"2010-03-15 00:00:00 +0000"];
int days = [future timeIntervalSinceDate:past] / 86400;
精彩评论