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 Build a Simple iPhone App (iOS7) Getting Started What Is an IBOutlet?

Louis Sankey
Louis Sankey
22,595 Points

Seeing LSView controller instead of THView controler

My main interface and implementation files all start with LS instead of TH like in the tutorials. Is this okay or does this mean I did something wrong setting up my project? Thanks

3 Answers

Stone Preston
Stone Preston
42,016 Points

Xcode uses your first and last name initials as the prefix for your files by default usually. you are given the option to specify your class prefix when you create a project in the "Class Prefix" field. using LS wont make any difference. you can keep it LS and be fine.

However if you really want to change it you can select your project in the file explorer (the item at the very top of the file tree) and then in the utilities pane open the file inspector you can change the "Class prefix" in the project document settings

Louis Sankey
Louis Sankey
22,595 Points

Ah, thanks for letting me know, although now I feel a little silly needing to ask about it. Anyway, thanks for the help, I feel better now knowing that I'm not set up wrong.

Stone Preston
Stone Preston
42,016 Points

Just make sure you reference your classes using the LS prefix and not TH.