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 Build a Simple iPhone App with Swift 2.0 Getting Started with iOS Development Architecture of an iOS App

Swift 7.3.1 Change to ViewController and AppDelegate?

I am working with Swift Version 7.3.1 and instead of the ViewController.swift and AppDelegate.swift files on Pasan's screen, I am seeing ViewController.h, ViewController.m, AppDelegate.h, and AppDelegate.m.

Will these changes be significant? How do I know which files to open to follow along? Does anyone know of a good resource with explanations of these changes?

Alternatively, did I do something wrong in the setup process that would have caused this difference?

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,631 Points

Hey Sonia, I'm assuming you mean Xcode 7.3.1 (Swift is only at v.2.2).

By looking at your question, I think you did err in the setup for the project Pasan is going to work on.

"ViewController.h, ViewController.m, AppDelegate.h, and AppDelegate.m" are Objective-C files and "ViewController.swift and AppDelegate.swift" are Swift files. So when you where setting up the project, you had Objective-C selected as the language (instead of Swift).

If you delete the current project and start over, it is an easy fix. Have a look at Creating a New Project at ~5:15 time stamp.

Keep Coding! :)

:dizzy: