我正在编写一个小型iPhone应用程序来检索存储在iPhone中的所有照片的元数据,例如EXIF信息,并且在调用AssetsLibraryFrameworkAPI时遇到了一个奇怪的问题。基本上,如果我正在调用ALAssetRepresentation的元数据方法数百次(即使是同一个ALAssetReprsentation对象),API将报告错误并返回null而不是照片的元数据。这是重现此问题的代码:ALAsset*photo=...//fetchaphotoassetviaAssetsLibraryFrameworkinti=0;ALAssetRepresentation*repres