CLLocationManager *locationManager and properties



I understand that from the previous chapter I don’t need to declare instance variables if I’m using the @property directive. I also see that instance variables declared as IBOutlet are there because they are created within IB. What I’m unclear about is why the CLLocationManager *locationManager instance variable doesn’t use @property?

I assume it might have something to do with not having accessors but I’m really not too sure. Can someone clarify what’s happening in that regard please?



Correct, we don’t need accessors because we will only ever reference it from inside the class. If another object had to reference it, we’d make a property to get the accessors.


That makes sense, thanks for the explanation.