Hello all,
I have noticed something that I can't really understand. Sometimes I created empty variables like this:
And other times I used this:
While writing a program today i noticed that i could only get it to work writing things the first way. Why is that? What's the difference between these two ways?
I'm not quite getting the difference.
I have noticed something that I can't really understand. Sometimes I created empty variables like this:
Code:
var manager = CLLocationManager()
And other times I used this:
Code:
var manager: CLLocationManager!
While writing a program today i noticed that i could only get it to work writing things the first way. Why is that? What's the difference between these two ways?
I'm not quite getting the difference.