【发布时间】:2014-01-14 11:41:06
【问题描述】:
如何获取文档目录中保存的图像文件的尺寸?
我可以使用以下代码获取其他属性,例如 NSFileCreationDate 和 NSFileSize
NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:imageFile error:nil];
NSDate *date = (NSDate*)[attributes objectForKey:NSFileCreationDate];
【问题讨论】:
标签: ios objective-c nsfilemanager