CLLocationManager *locationManager and properties


#1

Hi,

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?

Thanks


#2

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.


#3

That makes sense, thanks for the explanation.