reversegeocodelocation

SWIFT - LocationManager looping through multiple times?

家住魔仙堡 提交于 2019-11-28 09:45:53
问题 I have a locationManager function to grab the users current location and posting the name of the city and state. I have a print statement so I can check in my console if everything is working properly...and it is. However, it prints the city location 3 times. This actually causes an issue in my actual app but thats beyond the point of this question. My function is as follows: var usersLocation: String! var locationManager: CLLocationManager! func locationManager(manager: CLLocationManager,