我是新 iphone。在我小的应用程序,如何获取图像路径从照片库。下面的代码获取图像并放在 imageview 中使用此。
-(IBAction) selectimage{ UIImagePickerController*picker=[[UIImagePickerController alloc] init];picker.delegate=self;picker.sourceType=UIImagePickerControllerSourceTypeSavedPhotosAlbum;[self presentModalViewController:picker animated:YES];[picker release];}-(void) imagePickerController:(UIImagePickerController*)UIPicker didFinishPickingMediaWithInfo:(NSDictionary*) info{ [UIPicker dismissModalViewControllerAnimated:YES];imageview.image=[info objectForKey:"UIImagePickerControllerOriginalImage"];NSLog("Image Path=%@",imageview.image);}
其成功放到 Imageview。但我不能得到其 imagepath。我使用的 nslog("%@",imageview.image) ;它显示"图像路径 ="在控制台中。如何获得它的路径,以及如何从照片库中检索的照片。任何机构帮助我。先谢谢了。