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 trial

iOS Build a Playlist Browser with Swift Building the Master and Detail Views Displaying Playlist Information

David Daly
David Daly
2,659 Points

when 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
PLUS
matthewharrington2
Courses Plus Student 13,219 Points

There'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.

matthewharrington2
matthewharrington2
Courses Plus Student 13,219 Points

So 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:

viewDidLoad() {
        super.viewDidLoad()

I wrote:

view.bringSubviewToFront(titleView)

That seems to have fixed the problem for me.

I have the same problem.

I 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.