UIImage は、次の 2 つの方法で、あるコントローラーから別のコントローラーに送信できます。
最初のメソッド:(secondViewController で UIImage *image2; を定義する場所) secondViewController.image2=firstController.imageView.image ;
2 番目の方法 (secondViewController で NSData *recievedData を定義):
NSData *data= UIImageJPEGRepresentation(imageView.image,0.5);
secondViewController.recievedData=データ;
私の疑問は、消費されるメモリが少ない画像を送信する最も効率的な方法はどれですか?