我想使用 NSCalendarDate,它存在于
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/ System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSCalendarDate.h
但不存在于
下的任何地方/Developer/Platforms/iPhoneOS.platform
什么给出了?
最佳答案
10.5之后NSCalendarDate
将被弃用。因此它可能不存在于 iPhone SDK 中:
Important: Use of NSCalendarDate strongly discouraged. It is not deprecated yet, however it may be in the next major OS release after Mac OS X v10.5. For calendrical calculations, you should use suitable combinations of NSCalendar, NSDate, and NSDateComponents, as described in Calendars in Date and Time Programming Guide for Cocoa.
查找 NSCalendar
的 iPhone 版本, NSDate
和 NSDateComponents
关于iphone - 为什么 NSCalendarDate 在 Simulator SDK 中,但不在 iPhone SDK 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1051156/