メイン ビュー コントローラーに画像があり、この画像を新しいビュー コントローラーに表示したい...2 つのシーン間で文字列値を取得する方法は知っていますが、ストーリーボードの画像についてはわかりません....助けてください.. .
Is it right way to pass UIImage to another controller...
if UIImage *img1=[UIImage imageNamed:@"1.jpg"]; and UIImageView is *newimgview for newViewController
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString:@"imageview"])
{
newViewController *nvc=segue.destinationViewController;
nvc.newimgview.image=img1;
}
}