I am a bit confused with method foundLocation:

I understood that tapping on “done” triggers the findLocation method, which has a startUpdatingLocation method.
Then, when the location is found, the locationManager:didUpdateToLocation:FromLocation: method will be called, in which there is a foundLocation method, which creates an annotation on the map, right ?

But then, page 109, we set the showsUserLocation property of the MKMapView worldview to YES … isn’t this calling the locationManager:didUpdateToLocation:FromLocation: too ?
So won’t it create an annotation on the map too ?
(I know that no, because I tested the app, but I don’t understand why …)

Thanks for your help


Because the MKMapView has its own locationManager that it is the delegate of, and it will receive the messages from that particular location manager.