Iphone 捕获的图像未显示在uiimageView中

Iphone 捕获的图像未显示在uiimageView中,iphone,objective-c,uiimageview,camera,uiimagepickercontroller,Iphone,Objective C,Uiimageview,Camera,Uiimagepickercontroller,我有一个UI按钮来触发iphone的摄像头来抓取图像,我在同一个视图中有一个uiimageView来显示捕获的图像,但它在捕获后不显示任何内容 有什么解决方案吗?这是我的代码: IBActiongrabImage:idsender{ } -voidimagePickerController:UIImagePickerController*选择器 didFinishPickingImage:UIImage*图像 编辑信息:NSDictionary*编辑信息 { cameraImageView.im

我有一个UI按钮来触发iphone的摄像头来抓取图像,我在同一个视图中有一个uiimageView来显示捕获的图像,但它在捕获后不显示任何内容

有什么解决方案吗?

这是我的代码:

IBActiongrabImage:idsender{ }

-voidimagePickerController:UIImagePickerController*选择器 didFinishPickingImage:UIImage*图像 编辑信息:NSDictionary*编辑信息 { cameraImageView.image=图像; [picker dismissModalViewControllerAnimated:是]

}


如果我们能看到一些代码,我们可以帮助你。。。
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsImageEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController: picker animated:YES];
[picker release];