【问题标题】:[sender.date descriptionWithLocale:[NSLocale currentLocale]] gives different result?[sender.date descriptionWithLocale:[NSLocale currentLocale]] 给出不同的结果?
【发布时间】:2014-09-11 00:16:33
【问题描述】:

在模拟器中:

"Sunday, July 20, 2014 at 7:00:42 PM Singapore Standard Time"

在实际设备中:

"Sunday, 20 July, 2014 7:16:44 pm Singapore Standard Time"

为什么????

【问题讨论】:

    标签: ios iphone ios-simulator


    【解决方案1】:

    模拟器使用您 Mac 的区域设置,这可能与您设备上的不同。特别是,Mac OS X 允许在语言和区域系统首选项窗格中对您的区域设置进行更大程度的自定义。

    即使它们都设置为相同的值,也不能保证输出相同。

    【讨论】:

      猜你喜欢
      • 2011-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-04
      • 2017-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多