您好,我正在编写一款应用程序,其中包含一项竞赛。
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Icon Contest!"
message:@"Design a 1024 x 1024 pixels icon for Example. The best one will be on the app's icon! Send them to: example@example.com."
delegate:self
cancelButtonTitle:@"More Info"
otherButtonTitles:@"Yes",@"No", nil];
[alert show];
我有一个截止日期,我想让应用在 1 月 31 日结束时显示不同的提醒。
最佳答案
[NSDate date]
返回当前日期。
使用 NSDateComponent可以从 NSDate 中获取月份和日期等详细信息。
关于iphone - 您如何在 Xcode 中检测 iOS 上的日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13827532/