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

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
PLUS
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!