0
は、コア・データ・フィールドに現在の日付を保存するいくつかの問題を持っているように見える...ここ保存日付
はここ
NSDate *today= [NSDate date];
NSLog(@"the current date is %@",today);
[review setDate:today];
NSLog(@"Date %@", review.date);
はログです...コード..ですここで。
2012-03-26 23:24:39.187 Review Writer[17813:fb03] the current date is 2012-03-26 22:24:39 +0000
2012-03-26 23:24:39.188 Review Writer[17813:fb03] Date (null)
宣言です...
@interface Review : NSManagedObject
@property (nonatomic, retain) NSDate * date;
@end
'review'はnilです。 'nil'の「オブジェクト」のオブジェクトプロパティを取得しようとすると、' nil'も取得されます。 –