-(void)imagePickerController: (UIImagePickerController *)picker didFinishPickingMediaWithInfo: (NSDictionary *)info
{
//获取图片信息
ALAssetsLibrary *library = [[[ALAssetsLibrary alloc] init] autorelease];
[library assetForURL:[info valueForKey:UIImagePickerControllerReferenceURL] resultBlock:^(ALAsset *asset) {
ALAssetRepresentation *representation = [asset defaultRepresentation];
representation.UTI//@"public.png", @"public.jpeg“,可判断图片类型
representation.filename//相册中的文件名
representation.metadata//图片的显示信息
} failureBlock:^(NSError *error) {
}];
}