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!

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 Objective-C Basics (Retired) Advanced Objective-C Categories

Creating a category in Xcode 6.0 beta

I am currently trying to create a category class for my project and I am running with Xcode 6.0. The main problem that I am having is that I cannot find a category section to select for me to create any categories. Does anyone have any ideas?

1 Answer

If you go to File -> New -> File... this window will pop up. Under iOS Source there is an icon called Objective-C File. Click that and hit next. On the next screen you will see a drop down menu where you can specify the File Type as Category.

Thanks! I got stuck on that video too. I assumed that it was because I had a later version of Xcode, but I didn't know how to fix it! Thanks again!