如何将 MainViewController 中的uiimage
选定内容传递uiimagepickercontroller
给 SecondViewController?它确实推送到了 SecondViewController,但是它uiimage
是空的。
我在网上搜索过,尝试了解决方案,但仍然无法正常工作。
photoImage
是uiimageview
我在 SecondViewController 中声明的。
- (void)imagePickerController:(UIImagePickerController *) picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
[picker dismissModalViewControllerAnimated:YES];
SecondViewController *secondVC = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
[secondVC.photoImage setImage:[info objectForKey:@"UIImagePickerControllerEditedImage"]];
[self.navigationController pushViewController:secondVC animated:YES];
[secondVC release];
}