Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个严重依赖日期计算的应用程序。我正在使用 NSCalendar 并“以正确的方式”进行所有计算,但除了默认的美国日历之外,我真的没有任何方法可以测试任何其他日历。
如何更改 iOS 上使用的日历?我在哪里可以找到有关日历替代方案的更多信息?
您可以简单地在您的设备/模拟器上更改它。打开设置 -> 常规 -> 国际。您可以在此处更改日历日期或日历本身的格式。