Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


iOS Swift DropDown Menu/List

Hello all,

I need help trying to create a dropdown menu or list in xcode 6 in the Swift language. I don't even know where to start, can anyone provide me with a starting point or a tutorial I could follow? Thanks. All your help is very much appreciated.

1 Answer

Martin Wildfeuer
Martin Wildfeuer
Courses Plus Student 11,071 Points

Hey there!

So, as a starting point for custom controls I can recommend cocoacontrols.com. Searches like dropdown, complete or suggest come to my mind.

Searching on Google, you will almost always end up at Stack Overflow, one of the most valuable resources when it comes to specific programming questions.

From there, chances are that you will be directed to a repository on GitHub, that is where most of the open source code can be found.

As swift is a brand new language, most of the controls will be written in Objective-C. You can still use them, as long as you are using a so-called bridging header. More on the topic can be found at Apple Developer Docs.

Unfortunately, I cannot provide finished code, but here are a few links to check out

Hope that helps :)

Thanks for you help! I don't know why I didn't consider bridging headers!