calendar
レシーバーのカレンダーを返します
解説
レシーバーのカレンダーを返します。
返り値
( NSCalendar * )
なし
引数
フレームワーク
Foundation
クラス
NSDateFormatter
Instance Methods
使用可能
10.4
参照
-setCalendar:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSDateFormatter *dateFormat = [[NSDateFormatter alloc] initWithDateFormat:@"%B %e, %Y" allowNaturalLanguage:NO]; [myOutlet setFormatter:dateFormat]; NSCalendar *aCalendar = [dateFormat calendar]; NSLog([aCalendar description]); } @end