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

Retrieving current user location from mapView, without map being on screen

I'm writing an app that stores the location of the places you have been throughout the day. I've done a lot of research on CLLocationManager, and have been testing my app for the last 3 weeks. The locations I get with CLLocationManager sometimes is…
Rafael Moreira
  • 1,759
  • 2
  • 19
  • 20
0
votes
2 answers

CLLocationManager Overheating iPhone

I'm making an app with augmented reality. Basically what I have is a screen with image from camera, radar view and some markers on the screen. I'm using CLLocationManager to get updates on my heading and location. I need heading updates always…
haluzak
  • 1,133
  • 3
  • 17
  • 31
0
votes
1 answer

locationServicesEnabled == YES, but [[CLLocationMagager alloc] init] returns nil

I'm a bit puzzled. Consider the following code: if([CLLocationManager locationServicesEnabled]) { if(self.locationManager == nil) { self.locationManager = [[CLLocationManager alloc] init]; …
Chris
  • 3,192
  • 4
  • 30
  • 43
0
votes
1 answer

didUpdateToLocation not called after stopping location updates and starting it again

I have a scenario where i search for the current location.Once the current location search begins i use "startMonitoringSignificantLocationChanges" i get didUpdateToLocation delegate called and i get a location value. After the search is over i use…
Sankar Chandra Bose
  • 377
  • 1
  • 12
  • 27
0
votes
1 answer

CLLocationManager and distanceFilter?

i want to change the distanceFilter value on the basis of current speed. I try to change distanceFilter value after calling startUpdatinglocation on the basis of current speed, but it doesn't make any difference. Its giving location updates for…
saadnib
  • 11,145
  • 2
  • 33
  • 54
0
votes
1 answer

howto background a locationmanager with nstimer?

I have a problem with ios sdk. I need to set a timer that I update the phone's location every xx minutes in the background. When the position has an accuracy of 10 meters should be saved to a local db with a method that I have ready. How can I do?…
TheMiloNet
  • 363
  • 2
  • 13
0
votes
2 answers

GPS location/Region monitoring recap + how to switch on/off the gps signal (icon) in background [iOS]

I'l like to know A) if it's possible to completely switch off the use of gps when the App is in background mode and I terminate it (long press on "home button", tap on the "X" of the corresponding task), even if "region monitoring" is active and…
Paolo M
  • 31
  • 4
0
votes
1 answer

I want to have location of other devices in my iphone

I understand that the mapkit is used to show a device location in the mapView , but I want to show the location of other ios devices in a map view of my application. Is there any options for that?
vignesh kumar
  • 2,310
  • 2
  • 25
  • 39
0
votes
1 answer

iOS CoreLocation CLHeading - update heading to CLLocation

I'm in desperate need to constantly find the heading angel between my device/location and a specific location instead of NORTH. I'm getting didUpdateHeading and calculating the angel to the NORTH but how can I do it to a specific latitude,…
0
votes
1 answer

ios 5 simulate my core location

I've got a location-based IOS 5 app that uses my core location to retrieve local data. I'd like to extend it to enable "armchair traveling" where I can move the little blue dot to some arbitrary location, as though I physically went there. Then I…
egilchri
  • 761
  • 1
  • 5
  • 19
0
votes
2 answers

How to release all CLLocationManager instances when i click on logout button in my app?

My app is a tab bar. i have 4 views and i have CLLocationManager instance in every view. In every view i have logout button. I want to release all CLLocationManager instances when i click on logout. Is it possible? Thanks in advance.
Piscean
  • 3,069
  • 12
  • 47
  • 96
0
votes
2 answers

Does CLLocationManager Alert comes only in the start of application?

In my application I want to display CLLocationManager alert("App name" would you like to use your location) twice. One at the beginning and one, somewhere in middle of application in one of the controllers. Is it possible to show this alert twice in…
Nitish
  • 13,845
  • 28
  • 135
  • 263
0
votes
2 answers

CLLocationManager is always null -Delegate implementation is a Singleton Class (Subclass of NSObject instead of Subclass of UIViewController)

Is it OK to put the CLLocationManager Delegate methods in a Singleton class which is a subclass of NSObject instead of UIViewController? I would like to do this as Id like to invoke the Singleton from the App Delegate and start getting the…
banditKing
  • 9,405
  • 28
  • 100
  • 157
0
votes
1 answer

Showing Local Notifications using Location Manager, While app is in the background

I am new to iPhone Programming .I have developed one application for checking user entered into a particular region.But i need to check in Background.In background i am checking but the problem is repeating the UILocalNotification alerts . So…
Hariprasad.J
  • 307
  • 1
  • 12
0
votes
2 answers

MapView return to the current location annotation?

I'm asking my MapView to show the current location of the user that i get it from CLLocationManager using the delegate of startUpdatingLocation and also i add to the MapView some annotations but the problem is when scroll in the map to show some…
keep on you
  • 310
  • 6
  • 21