|
Update: I fixed this : ) Hello my friends, I am so close to figuring out the Milestone challange but running into 2 bugs that i just can't figure out :
PS: The class i created is called " EachCell ", which contains var Caption, and var Photo. My ViewController:
My DetailViewController:
Grateful for your help! Thank you all ! |
|
You cannot create the alert in the |
|
What about |
|
Hmm oopsss I think I accidentally deleted my previous reply??! You are right that totally worked !!! Now i just have to figure out why my detailVC isn't showing the photo. its loading the title fine, which is the same as caption, but no pictures. So strange. i thought it messed up the IBOutlet or something in the storyBoard , but re-did it 3 times and now im convinced my code is fked* . Thank for your help : ) |
|
|
|
@Kru178 - For me, I think the issue was in my didSelectRowAt. I end up finding the path for where each photo were saved in the local user directory, and then used that to set my vc.selectedImage.
Here is the github code, I hope it helps? I'm obvisouly not an expert haha but this worked for me. |
|
@fsafddg Ahh sorry friend, I am not familiar with Wordpress, so I couln't answer that question :( |
|
For anybody else looking for the answer why detail VC doesn't show the image after app relaunch, this article helped me: https://handyopinion.com/save-load-image-from-documents-directory-in-swift/ |
SAVE 50% All our books and bundles are half price for Black Friday, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.