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 question ! n ?

anyone know wht is the meaning of displayLabel.text! ! mean what? and var didUserPressedOperation:Bool? ? mean

1 Answer

This is about optionals and unwrapping them. It's an important concept in Swift, it's impossible to cover it here, so I would recommend you have a look at the following resources:

Also, I would recommend to follow the iOS tracks on Treehouse, they are designed to learn Swift from scratch.

hmm, can you tell me what is the main difference between array:[String] = [] and array:[String} = String

isn't both for creating empty array ?

hmm, can you tell me what is the main difference between array:[String] = [] and array:[String} = String

isn't both for creating empty array ?