我用imagePicker选到image 这个image的路径怎么取到呢,我想把它的路径存到sqlite中去,并且还能够从数据库中取出来,应该要怎么写。
[code=C/C++][/code]- (void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingImage:(UIImage *)image
editingInfo:(NSDictionary *)editingInfo {
imageView=[[UIImageView alloc]initWithFrame:CGRectMake(30, 20, 230, 250)];
imageView.image = image;
[picker dismissModalViewControllerAnimated:YES];
[self.view addSubview:imageView];
}
------解决方案--------------------
-(void) imagePickerController:(UIImagePickerController *)picker
didFinishPickingMediaWithInfo:(NSDictionary *)info
NSURL *imageURL = [info valueForKey:UIImagePickerControllerReferenceURL];
------解决方案--------------------
------解决方案--------------------