Closed ninjanam closed 6 years ago
Hi @ninjanam, thanks for your patience!
In Home.storyboard
, select content view of your PostImageCell
in your Document Outline. Next, navigate to the Identity Inspector in the Utilities area. You'll notice that you've accidentally set the Class property of your content view to PostImageCell
.
This is causing some funky behavior because the content view is of type UIView
, not PostImageCell
. If you delete it, your PostImageCell
should work as you expected it to.
Bugs like this can be super tough to track down. One trick I use is that if I've already double-checked my code, I'll delete the code (just the portion that's not working) and re-code it again. In fact, that's what I used to figure out what was going on here. 🙃
Keep rocking!
Yikes! That was all it was..... I totally didn't 🙈 that. Thanks so much Chase for taking the time to find the issue and for giving me tips on how to track down any similar problems in the future. I removed it and it works perfectly. Very happy indeed.
If there was a feedback page that you have or any other projects you require promoting, I'd be happy to provide my support.
Keep rocking, also!
Hi @ocwang,
I've completed up to Step 19 and enjoying every section. Really appreciate it! However, there is an issue in that while I can post images and toggle the Like button, the images are not displaying correctly. Some are blown up so I think it's not "aspect-filling" correctly. Have ensured the aspect fill option checked in the Content Mode of the Image View in PostImageCell. My projected is at https://github.com/ninjanam/Namstagram
Could you please take a look and point me to where I can look to fix this? Many thanks!