description
カレンダー日付を文字列で返します
解説
カレンダー日付を文字列で返します。
返り値
( NSString * )
日付けをあらわした文字列
引数
フレームワーク
Foundation
クラス
NSCalendarDate
Instance Methods
使用可能
10.0
参照
- descriptionWithCalendarFormat:
- descriptionWithCalendarFormat:locale:
- descriptionWithLocale:
- setCalendarFormat:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSDate *theDate; theDate = [NSCalendarDate calendarDate]; NSLog([theDate description]); } @end