iOS Apprentice My Locations app PhotoID issue

Hi there!

I am learning Swift coding and did MyLocations iOS app demo from book. I now try to expand it in same app to learn more how to play with CoreData. I am now facing the issue when I am trying to save images. When I call save image (doneButtonPressed) it won’t write new PhotoID + 1 so I don’t get uniq photoID for images. I have tried to replicate that same code when I add images for my saved locations which works fine, but something just doesn’t work. I have added screenshots of custom cell, LocationDetailViewController, DataModel entity’s, Location + CoreData Class and app that shows my CoreData. Please can someone help me with this? I feel bit frustrated :sweat_smile: Kind regards, Toni





This topic was automatically closed after 166 days. New replies are no longer allowed.