- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
NSURL *imageURL = [info valueForKey:UIImagePickerControllerReferenceURL];
ALAssetsLibraryAssetForURLResultBlock resultblock = ^(ALAsset *myasset) {
ALAssetRepresentation *representation = [myasset defaultRepresentation];
weakSelf.imageName = [representation filename];
NSLog(@"imageName : %@",weakSelf.imageName);
};
ALAssetsLibrary *assetslibrary = [[ALAssetsLibrary alloc] init];
[assetslibrary assetForURL:imageURL resultBlock:resultblock failureBlock:nil];
}
通过UIImagePickerController选取的图片名称信息
原文:http://www.cnblogs.com/Milo-CTO/p/6283376.html