2011-11-08 23 views

答えて

0

AssetsライブラリとUIImagePickerControllerを使用する必要があります。私はサンプラーとしていくつかのコードを入れます。

NSMutableDictionary *imageMetadata = nil; 
NSURL *assetURL = [info objectForKey:UIImagePickerControllerReferenceURL]; 

ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; 
[library assetForURL:assetURL 
    resultBlock:^(ALAsset *asset) { 
     NSDictionary *metadata = asset.defaultRepresentation.metadata; 
     imageMetadata   = [[NSMutableDictionary alloc] initWithDictionary:metadata]; 
     [self addEntriesFromDictionary:metadata]; 
    } 
    failureBlock:^(NSError *error) { 
    }]; 
[library autorelease]; 
+0

助けてくれてありがとうございました。写真についての情報はありますが、時間情報はありません。保存されている時間情報は表示されません。 – Jes

関連する問題