iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
Livid
279.45D
571.21D
V2EX  ›  iDev

iOS 4 里的 NSDateFormatter 的 setDateFormat 依据的国际标准到底是哪个?

  •  
  •   Livid ·
    PRO
    · Mar 4, 2011 · 5180 views
    This topic created in 5557 days ago, the information mentioned may be changed or developed.
    3 replies    1970-01-01 08:00:00 +08:00
    jjgod
        1
    jjgod  
       Mar 5, 2011
    Livid
        2
    Livid  
    MOD
    OP
    PRO
       Mar 5, 2011
    @jjgod 感谢你的权威解答。

    我之前在看资料的时候看到还有另外一种语法 setDateFormat:@"%m/%d/%Y" ,所以有些困惑。

    再次谢谢。 :)
    jjgod
        3
    jjgod  
       Mar 5, 2011
    @Livid: 10.4 以前是用 Apple 自己的实现,10.4 以后和 iOS 的实现都是基于 ICU 的,所以用了 Unicode 标准的实现。你说的这种就是 10.0 到 10.3 用的,现在也可以切换为兼容性模式支持: http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/DataFormatting/Articles/df100103.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5299 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 67ms · UTC 07:46 · PVG 15:46 · LAX 00:46 · JFK 03:46
    ♥ Do have faith in what you're doing.