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 An iTunes Search App Building the User Interface Stubbing the Album Data

Michael Hall
Michael Hall
18,704 Points

Search bar persists on every view

Everything appears to be working but when I segue into the next view the search bar doesnt go away automatically

Michael Hulet
Michael Hulet
47,912 Points

It's difficult to help without seeing your code. Can you post a link to your project here?

Michael Hulet
Michael Hulet
47,912 Points

Could you at your .xcodeproj file to this? That'd make it easier for me to open/compile the whole thing in Xcode

1 Answer

In SearchResultsController.swift

Add the line

definesPresentationContext = true

at the bottom of viewDidLoad()