Aruna M
Aruna M

Reputation: 496

ios:dismiss and push view controller performing at a time

I have 3 view controllers in my current app.


Problem

In the second view controller, I have a UIImagePickerController for picking the image and the image goes for editing by pushing the third view controller. I then need to dismiss the view controller after editing the image and also need to push the image to the stream view controller (first view controller). How should I do this? Thanks for the help!

Upvotes: 0

Views: 214

Answers (1)

Cris
Cris

Reputation: 464

From what I can tell, you want to pass an image from the 3rd view controller to the 1st view controller.

You could use NSNotifications to do this.

But you may want to consider a separating the publishing to a stream from the first view controller, and put it in its own (singleton) publishing service.

Upvotes: 1

Related Questions