-1

I have a collection view cell on VC1 that contains, an imageView, a label and a button.

How can i send the image contained in the imageView on VC1 to an imageView in VC2 on the tap of that button?

1 Answers1

0

You set UIImage objecte in VC2 and on push or present viewcontroler time vc2.image = vc1.imageview.image use than set UIImage on UIImageView on Viewdidload event

Lokesh Dudhat
  • 449
  • 3
  • 10
  • i am getting "Cannot connect to repeating content" error, i already have the stuff in the collection view saving to an array. – Matthew Ehrlich Dec 03 '15 at 17:35
  • in vc2 i did `var receivedStr = ""` i added `viewDidLoad()` to have `label.text = receivedStr` then in VC1 i connected my label in the collection view cell to an outlet and in `prepareForSegue` i did `vc2.receivedStr = nameLabel.text` – Matthew Ehrlich Dec 03 '15 at 17:53