如何访问 iPhone 中文件的文件信息(例如创建日期、大小等)?
如何访问 iPhone 中某个文件的文件信息(例如创建日期、大小等)?我需要根据创建日期、大小等对某些文件进行排序。
How to access file info (such as date created,size etc) about a file in iphone?i need to sort certain files based on the date of creation,size etc..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试此方法:
然后您可以查询
[attributes fileCreationDate]
或[attributes fileSize]
。请参阅 NSFileManager.h 以了解NSDictionary
的NSFileAttributes
类别。Try this method:
You can then query
[attributes fileCreationDate]
or[attributes fileSize]
. See NSFileManager.h for theNSFileAttributes
category ofNSDictionary
.