現在、別のオブジェクトをインスタンス化するために のUIImage
プロパティにアクセスしようとしています。単に私はこれをやろうとしています。UIImageView
UIImage
UIImage *myImage = myExistingView.image;
ただし、プロパティは設定されません。myImage の nil 値を取得し続けます。
画像をコピーしたいのですが、最終的には次のようなことをします
UIImageView *newImageView = [[UIImageView alloc] initWithImage:myImage];
しかし、私はそれを下げることができないようです。提案?
編集。うまくいかなかった最新の試み。
UIImageView *newView = [[UIImageView alloc] initWithImage:[[UIImage alloc] initWithData:UIImagePNGRepresentation(myImageView.image)]];