I want to get location information every second with swift!

Asked 2 years ago, Updated 2 years ago, 31 views

I use startUpdatingLocation() to get location information from the deligate, but I want to get it every second, but I can only get it once every 10 seconds.

Can't it be removed in the first place?
If so, why can't I get it?
It doesn't matter if it's not every second, so can I get it even once every few seconds?

swift

2022-09-30 17:08

1 Answers

If you set the CLLocationManager's desiredAccuracy to kCLLocationAccuracyBestForNavigation, you should be able to retrieve location information almost every second.


2022-09-30 17:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.