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 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,857 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: