gpt4 book ai didi

iphone - 您如何在 Xcode 中检测 iOS 上的日期

转载 作者:行者123 更新时间:2023-11-28 18:12:44 24 4
gpt4 key购买 nike

您好,我正在编写一款应用程序,其中包含一项竞赛。

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com