質問
私は、これは簡単な問題であると確信しているが、私はちょうどこのどこかを行う方法を見つけるように見えることはできません。私は、現在の日付を使用して文字列にそれを保存する必要があります。私はdatのスタンプを取得する方法がわかりません。 誰かが私を助けていただけますか? お時間をいただき、ありがとうございます! -Jeff
解決
あなたは<のhref =「http://developer.apple.com/mac/library/documentation/cocoa/reference/foundation/Classes/NSDateFormatter_Class/Reference/Reference.html」に応じて、あなたの書式を設定する必要がありますrel = "nofollowをnoreferrer">文書の
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"MM-dd-yy"];
NSString *date = [formatter stringFromDate:[NSDate date]];
所属していません StackOverflow