0

Can I pass an Image from a popoverview to the controller that brings the popoverview forward? Can I pass the image with a delegate or do I have to put it in NSData to transport it?

I am having struggles with it, I already tried a thousand tutorials but I can't get it working, so my question is:

Is it possible to pass images from popoverviews to viewcontrollers?

And, if yes: what is the easiest way to understand and do this?

Nilesh Patel
  • 6,318
  • 1
  • 26
  • 40
09Toine
  • 19
  • 6
  • Have a look at this [answer](http://stackoverflow.com/questions/6203799/dismissmodalviewcontroller-and-pass-data-back). This may help. Ideally [-popoverControllerDidDismissPopover:](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPopoverControllerDelegate_protocol/index.html#//apple_ref/occ/intfm/UIPopoverControllerDelegate/popoverControllerDidDismissPopover:) is the best approach to use. – Vivek Molkar Apr 28 '15 at 12:01
  • In that answer, they use strings, and I know that this is possible, but is this also possible with Images, for example an image drawn in the popoverview ( a signature) @vivekmolkar – 09Toine Apr 28 '15 at 12:05
  • I don't see any problem. You can use UIImage as a property instead of NSString. It should work. – Vivek Molkar Apr 28 '15 at 12:07

0 Answers0