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, ToniScreenshot 2021-10-28 at 8.22.33
Screenshot 2021-10-28 at 8.23.48
Screenshot 2021-10-28 at 8.25.51
Screenshot 2021-10-28 at 8.30.31
Screenshot 2021-10-28 at 8.30.54

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