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 Implementing Designs for iPhone Customizing Table View Controllers Customizing Table View Cell Checkmarks

Can't follow video. Not able to define a global variable like in the lesson

I'm not able to declare a global variable like what Ben is doing in the video.

When I try to type UIColor *disclosureColor; below the @implementation EditFriendsTableViewController line, it makes it all capitalized and I get an error saying "Unknown type name UICOLOR".

I'm unsure of what I'm doing wrong / differently. Any help is welcome.

1 Answer

Robert,

Try typing it in a plain text edit, and then copy and paste it into the .m file. It should not be causing a problem. I have noticed that sometimes xcode will try to help with suggesting previous entries, if you type UICOLOR by accident, then it will try to autocomplete that for you the next time you type UIC.... Correctly typing UIColor should give you the correct result.

UIColor* disclosureColor;