I'm just starting out in iOS app development,so if this question seems foolish please bear with me. I'm creating a sample app where I have 2 view controllers.The first one has a full screen image,with a navigation bar and a camera roll button, which I use to pick a image from the galley when the app starts.Then I swipe to the second view controller where I enter some data like who clicked it,what camera was used etc in a text box.The second view controller has a navigation bar and a button Item in the navigation bar which I named back to return to the 1st view controller with the image.I have linked this button via the segue to the 1st view controller.Now with this setup everything is functional,but the only problem is when I load a image from the gallery and swipe to the second view to write the data,and then hit the back button to return to the first view, the image that I loaded from the gallery is no longer there and I'm presented with a blank screen.
So how can I make sure that I don't loose the loaded image when I swipe back from the second view controller to the first one?
Thanks any help would be appreciated.