uiimage
MainViewController で選択し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];
}