¡@

Home 

2014/10/15 ¤U¤È 10:04:55

iphone Programming Glossary: category's

What is the best way to deal with the NSDateFormatter locale “feature”?

http://stackoverflow.com/questions/6613110/what-is-the-best-way-to-deal-with-the-nsdateformatter-locale-feature

nil self super init if en_US_POSIX nil en_US_POSIX NSLocale alloc initWithLocaleIdentifier @ en_US_POSIX NSLog @ Category's locale @ @ en_US_POSIX.description en_US_POSIX localeIdentifier self setLocale en_US_POSIX return self @end The code NSDateFormatter.. 05 05 12 34 56 PM NSLog @ date4 @ date4.description fmt release The result 2011 07 11 17 44 43.243 DemoApp 160 307 Category's locale __NSCFLocale 0x11a820 en_US_POSIX 2011 07 11 17 44 43.257 DemoApp 160 307 dateString 2011 07 11 05 44 43 PM 2011.. nil self super init if en_US_POSIX2 nil en_US_POSIX2 NSLocale alloc initWithLocaleIdentifier @ en_US_POSIX NSLog @ Category's locale @ @ en_US_POSIX2.description en_US_POSIX2 localeIdentifier self setLocale en_US_POSIX2 NSLog @ Category's object..