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 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;