Questions tagged [cllocationmanager]

The CLLocationManager class defines the interface for configuring the delivery of location- and heading-related events to your application

The CLLocationManager class defines the interface for configuring the delivery of location- and heading-related events to your application. You use an instance of this class to establish the parameters that determine when location and heading events should be delivered and to start and stop the actual delivery of those events. You can also use a location manager object to retrieve the most recent location and heading data.

A location manager object provides support for the following location-related activities:

  • Tracking large or small changes in the user’s current location with a configurable degree of accuracy.
  • Reporting heading changes from the onboard compass. (iOS only)
  • Monitoring distinct regions of interest and generating location events when the user enters or leaves those regions.
  • Deferring the delivery of location updates while the app is in the background. (iOS 6 and later only)
2729 questions
0
votes
2 answers

How to reach userLocation globally?

I want to get all the classes in my project userLocation variable. How can I identify as a global? Is that reasonable? Do I have to define each class separately? Also I would like to access the application in the background too. Thanks
Okan
  • 1,133
  • 8
  • 15
0
votes
1 answer

iOS Compass vs independent developer versions

I can't seem to manage to make my compass application function anywhere near as smoothly as Apple's, and I haven't seen any compass applications from independent developers that don't lag and sometimes jump erratically like mine does. Is there any…
Jezen Thomas
  • 13,619
  • 6
  • 53
  • 91
0
votes
1 answer

XCode ARC Multiple instances of the same view

I am new to iOS development and I am writing a 3-View Location Application. The first view is the main view of the application, the second view is a table view with several locations and the third view is a detail view, where the user is able to…
android
  • 247
  • 1
  • 3
  • 12
0
votes
3 answers

CLLocationManager: no network, store coords and resend when network comes available?

I have a pretty straightforward implementation of CLLocationManager. It collects user coords and when data is of appropriate distance and accuracy it sends to my server. However, sometimes there is no network connectivity. In these cases, I need to…
istan
  • 1,349
  • 3
  • 21
  • 36
0
votes
1 answer

CLLocationManager not stopping/releasing

I'm using MKMapView and I start the map at the last known location with CLLocationManager, the problem is that the iPhone and Location Services reports that I'm still using the services after I'm done which rises some concerns about battery…
Diego Torres
  • 5,308
  • 5
  • 25
  • 29
0
votes
3 answers

How do I get CLLLocationManager to return immediately with a location?

I am trying to tweak my CLLocationManager settings so that when I call startUpdatingLocation it calls the delegate right away. Any idea on how to do this?
adit
  • 32,574
  • 72
  • 229
  • 373
0
votes
4 answers

Passing Current longitude & latitude on buttonclick event

Hello I am using CoreLocation to get latitude and longitude in my map application to get latitude and longitude by using following method - (void)viewDidLoad { locationManager = [[CLLocationManager alloc] init]; locationManager.delegate =…
Navnath Memane
  • 265
  • 1
  • 8
  • 25
0
votes
2 answers

Location and heading not working

I downloaded the source code of this tutorial and played a bit with it. All working fine. Now I wanted to create my own project to implement location and heading. But after writing all, it does not work. I don't even see a GPS indication on the…
Justin
  • 2,960
  • 2
  • 34
  • 48
0
votes
2 answers

CLLocationManager "turn on location services..." alertview customization ios

I know that I can't change the title or the buttons for this alertview, but i've seen numerous apps that changed the message of the alert view Something like this Also, I have the Bump API in my app so everytime the popup shows, it says "Bump uses…
Andrew Park
  • 1,489
  • 1
  • 17
  • 26
0
votes
0 answers

Use standard location updates along with region monitoring - iOS

I am working on an app that needs to call an API for every 100 meters the user walks for. I need to make the app work even if it is terminated by the system.` I was thinking about region monitoring as it will work in the terminated state as well,…
Vaibhav Singh
  • 119
  • 14
0
votes
1 answer

Get users current location and upload it to firebase

I am trying to get the users current location in swifti and then upload it to firebase, but nothing seems to be uploaded I tried adding print commands to the code to check whether I was getting the location but nothing was printed to the terminal,…
user21138718
0
votes
1 answer

SwiftUI - Show predefined location as a user location on map

I am building an app that relies significantly on the user's location. When the app starts, the user is presented with a series of views (on-boarding), and on the last view there are the following options: A) Click to get your location: in this…
christostsang
  • 1,701
  • 3
  • 27
  • 46
0
votes
1 answer

Location Manager (Give road name)

I'm new to iOS programming and is developing an app that requires the user's location. I do not need to plot it onto a map nor any fancy coordinates. All I need is the road name (Whatever Street/Avenue) as a string for my app to use. I stumbled upon…
Paul Bang-Jensen
  • 165
  • 2
  • 4
  • 12
0
votes
0 answers

LocationManager gets called multiple times on app startup

So I am dealing with an issue where the LocationManager file that I have, and the didUpdateLocations function, is being called multiple times on application startup and I can't figure out what is causing it. So I have the following…
theMap
  • 43
  • 5
0
votes
0 answers

Why does my compiler in swift jump around in the function?

I copied a Swift-func last week out of the internet Link. The function should convert 2 CLLocationDegrees (latitude and longitude) into an address. From the address I only need the postal code. The postal code gets saved in var plz: String. Then if…
1 2 3
99
100