1:父类
继承于: NSObject
2: 属性
//语言环境
@property (nullable, copy) NSLocale *locale;
//日历的时区
@property (copy) NSTimeZone *timeZone;
3:方法
//根据指定的标识符初始化日历
//参数1:日历标识符
//返回: 初始化的日历或者nil(如果标识符是未知的(例如: 如果它是一个无法识别的字符串, 或者是当前版本的操作系统不支持的日历))
- (nullable id)initWithCalendarIdentifier:(NSCalendarIdentifier)ident;
//日历标识符
NSCalendarIdentifierGregorian //通用日历
NSCalendarIdentifierBuddhist
NSCalendarIdentifierChinese
NSCalendarIdentifierCoptic
NSCalendarIdentifierEthiopicAmeteMihret
NSCalendarIdentifierEthiopicAmeteAlem
NSCalendarIdentifierHebrew
NSCalendarIdentifierISO8601
NSCalendarIdentifierIndian
NSCalendarIdentifierIslamic
NSCalendarIdentifierIslamicCivil
NSCalendarIdentifierJapanese
NSCalendarIdentifierPersian
NSCalendarIdentifierRepublicOfChina
NSCalendarIdentifierIslamicTabular
NSCalendarIdentifierIslamicUmmAlQura
网友评论