当我使用pushViewController
导航按钮时,我会进入一个空白视图Saved photos
,我不知道为什么。我想ReportViewController
在选择图像后移动到。
这是我的代码,看起来还可以。可能出了什么问题?
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
//Geting the image from the camera
image = [info objectForKey:UIImagePickerControllerOriginalImage];
ReportViewController *imageSelectionVC = [[ReportViewController alloc] init];
[imageSelectionVC.imageReport setImage:image];
[picker pushViewController:imageSelectionVC animated:YES];
}