Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDavid Daly
2,659 Pointswhen I run my app the image and background color change, but the view with the title and description doesn't show up.
Has this happened to you?
3 Answers
matthewharrington2
Courses Plus Student 13,219 PointsThere's some other problem than a typo. The UIImage background color is covering the view that contains the Title and description. If you never assign a background color then it displays correctly and also if you display the background but change the alpha to .5 you can see the Title, description and 30% opacity view . I'm not sure why this is happening though. I've tried to arrange element toward the front but it didn't work.
Martin Graulund Larsen
26,279 PointsI have the same problem.
Wei Wen
2,995 PointsI ran into the same problem. I made a typo in the struct init. That is the case for many other people who ran into the same problem. Hope this helps.
matthewharrington2
Courses Plus Student 13,219 Pointsmatthewharrington2
Courses Plus Student 13,219 PointsSo I got it to work and it was along the lines that I was thinking. the view that we located the Title and Description into was being hidden from view.I made an outlet to that view in the PlaylistDetails VC like so:
@IBOutlet weak var titleView: UIView!
Then in the same Playlist Details VC after:
I wrote:
view.bringSubviewToFront(titleView)
That seems to have fixed the problem for me.