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 Basics (retired) Types Strings

[in xcode] i don't get "console output" box area, when i chose [view], [assistant editor], [show Assistant Editor] why?

[in xcode] i don't get "console output" box area, when i chose [view], [assistant editor], [show Assistant Editor] why?

in fact xcode doesn't do many things the treehouse course says it does...

strings.swift

2 Answers

Try this shelli....

println("Bread\nMilk\nHoney")

happy coding :)

thanks, but xcode STILL does not like 'println' isn't this to print to printer?
xcode just keeps replacing 'println' with 'print' and adds '\n' to screen output.

could i have something wrong?

Steven Deutsch
Steven Deutsch
21,046 Points

println() is no longer supported since the update from Swift 1.0 to Swift 2.0. It has been renamed print().

I recommend you switch to the Swift 2.0 track https://teamtreehouse.com/tracks/ios-development-with-swift-20

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Steven is correct, and in Xcode 7.x, to get your console, you click the icon in the top right hand corner (looks like a square with a solid bottom line). This will open the debug and console at the bottom of your screen.

:)