开发者

how to run countdown with dates to count days in iphone sdk [closed]

开发者 https://www.devze.com 2022-12-24 05:36 出处:网络
I开发者_运维问答t's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
I开发者_运维问答t's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消