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 Swift Functions and Optionals Functions Creating a Function

When I type println the error occurs: println is unavailable, use print?

one thing i have to ask. in my xcode.. while i type println . .the error occurs ( its unavailable. ) use print. ? ? what can i do now

2 Answers

Steven Deutsch
Steven Deutsch
21,046 Points

Your Xcode version isn't the problem. The Swift programming language is now on version 2.0. You need to be following this track: https://teamtreehouse.com/tracks/ios-development-with-swift-20

Steven Deutsch
Steven Deutsch
21,046 Points

Hey vigneshwaran muthupandi,

You need to use print() because println() isn't supported in Swift 2.0. I suggest you start with the Swift 2.0 development track so that you won't run into these issues.

Good luck!

iam having version 7.2 (768). what i have to do ?

thank u Steve