Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是的,我想从 iOS 的文档目录中获取文件的创建日期。
这就像NOTES来自 iOS 的应用程序。
NOTES
在 Notes App 中,有一个创建和修改文件的日期。
我也想这样约会。
我怎样才能做到这一点?
谢谢你的帮助。
NSError* error = nil; NSDictionary *file_info = [[NSFileManager defaultManager] attributesOfItemAtPath: your_path error:&error]; NSDate *modified = file_info[NSFileModificationDate]; NSDate *created = file_info[NSFileCreationDate];