在Swift中获取iPhone日期和时间设置

时间:2018-07-11 20:05:36

标签: iphone swift

如何在Swift中获取iPhone的日期和时间设置?我需要知道public Startup(IConfiguration configuration, IHostingEnvironment env) { var contentRoot = env.ContentRootPath; } 是否正确,并在应用程序内采取特定措施。

iPhone's Date and Time configuration in portuguese

1 个答案:

答案 0 :(得分:0)

不幸的是,我认为这不可能,但是当用户更改日期和时间时,您可以get notified