init
NSDateを初期化して返します
解説
NSDateを初期化して返します。
現在の日付と時間で初期化します。
返り値
( id )
時間
引数
フレームワーク
Foundation
クラス
NSDate
Instance Methods
使用可能
10.0
参照
+ date
- initWithTimeIntervalSinceReferenceDate:
-initWithTimeIntervalSinceReferenceDate:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSDate *theDate = [[NSDate alloc] init]; [myOutlet setStringValue:[theDate description]]; } @end