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 Views and View Controllers View Controllers and IBAction

Xcode and spell checking

I am getting an error in my code using Xcode (Swift)

It is wanting me to change "println" to print, its picking up that it is spelled wrong and is causing the red mark on that line.

How can I fix this?

Thank you

Hi Victor, println has changed to print in Swift 2. Pasan Premaratne Maybe Treehouse can make a note of this in the course?

2 Answers

Alexander Smith
Alexander Smith
10,476 Points

when swift 2 replaced swift 1, println turned into just print. There will be more changes as they make more versions of swift as well. It's a young language and is still a work in progress at this point. Also, i recommend doing the swift 2 track as a few things in the swift 1 track are obsolete now

Thank you for the quick reply and helpful info

Pasan Premaratne
STAFF
Pasan Premaratne
Treehouse Teacher

Hey all,

The content you are watching has been archived because it uses Swift 1 which is an older version. Make sure you take the courses marked Swift 2.0