cllocationmanager Questions

6

Solved

I'm not getting any location callbacks on either sim or device. I've got this code being called: - (void)startLocationCallbacks: (NSObject*) ignore { locationManager.delegate = self; locationMan...
Floozy asked 17/9, 2010 at 0:24

20

Solved

I want to get the current location, but instead I get an error. This is a snippet of my view controller. - (void)viewDidLoad { self.locationManager = [[CLLocationManager alloc] init]; [location...
Starstarboard asked 17/5, 2011 at 15:10

3

Solved

If I init additional CLLocaitonManager instance that track user location, is It will increase the load? Or Should I using one CLLocaitonManager instance between classes?
Bryanbryana asked 7/11, 2011 at 6:24

8

Solved

Hy guys, I'm making an app in swift 3.0 but I ran across a problem pretty soon. I set up necessary functions to ask for permission to use a location but every time I run the app I get the same erro...
Secern asked 31/10, 2016 at 15:19

10

Solved

I want to get the current longitude and latitude of a location using Swift and display them via labels. I tried to do this but nothing displays on the labels. import UIKit import CoreLocation clas...
Indopacific asked 4/11, 2014 at 17:44

5

UPDATE: THIS IS NOT A DUPLICATE. I have already added the required key to the info.plist as stated in my original question and the issue remains. I have tried all three keys in various combinations...
Kapok asked 29/12, 2014 at 18:19

6

I am using CLLocationManager class. I have a simple class method for capturing the location +(void)captureLocation{ mLocationManager = [[CLLocationManager alloc]init]; mLocationManager.delegate ...
Unific asked 19/11, 2013 at 12:59

4

I'd like to update the location of the simulator in the middle of my UI test so that I can check the behavior as the location changes. Is there a way for the UI Test to somehow "call out" to run an...
Ironsmith asked 9/8, 2016 at 17:11

8

Solved

I'm trying to get the user's location. To do so I have set the following property in the info.plist : I have also added the following code in my viewDidLoad method as well as the function below...
Ganley asked 7/6, 2016 at 15:12

16

How can I store the user's current location and also show the location on a map? I am able to show pre-defined coordinates on a map, I just don't know how to receive information from the device. ...
Philippopolis asked 13/8, 2014 at 21:43

4

Solved

I'm trying to create a simple app that finds out the region someone is in, but I'm stuck because none of the CLLocationManagerDelegate methods are called when the app runs and finds locations. In ...
Semiannual asked 17/10, 2014 at 22:25

12

Solved

This my code...... -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations { location_updated = [locations lastObject]; NSLog(@"updated coordinate are %@",...
Awesome asked 10/3, 2014 at 5:43

6

Solved

I have the following loop in my viewDidLoad: for(int i=1; i<[eventsArray count]; i++) { NSArray *componentsArray = [[eventsArray objectAtIndex:i] componentsSeparatedByString:@","]; i...
Kushner asked 23/2, 2010 at 13:49

10

Solved

I need to check if user location belongs to the MKCoordinateRegion. I was surprised not to find simple function for this, something like: CGRectContainsCGPoint(rect, point). I found following piec...
Newborn asked 11/5, 2012 at 14:13

2

Solved

I'm trying to set up an on boarding where I'm asking the user for a few permissions including: Location, Notifications and Camera. I have 3 different View Controllers set up, each asking for one of...
Longdrawnout asked 7/7, 2016 at 18:21

4

Solved

If user has explicitly denied authorization for this application, or location services are disabled in Settings, it will return Denied status. How can I know the exact reason of it?
Mamie asked 12/12, 2014 at 4:18

1

[Expected behaviour: Specifically for iOS 15. iOS 14 or lower versions work fine] I have an Xamarin.Forms iOS app where I am monitoring and ranging for BLE beacons. The goal is that being in foregr...

9

Solved

Code below should get current location. But above error is generated. Function didUpdateLocations never gets called. Running this on a device (iPhone 5s)iOS 9.1. Info.plist has Required device ca...
Rebba asked 12/9, 2015 at 21:9

11

Solved

I am learning how to use the new Swift language (only Swift, no Objective-C). To do it, I want to do a simple view with a map (MKMapView). I want to find and update the location of the user (like i...
Cowen asked 22/8, 2014 at 14:31

4

Solved

This is the section from the CLLocationManager documentation describing the app behavior with startMonitoringSignificantLocationChanges: If you start this service and your application is subseq...

4

Solved

Im creating this app, and it needs to get the users location - its all working properly, the thing is, that the time from accepting the use of location services, to getting the actual location take...
Agitator asked 15/2, 2017 at 9:36

4

I'm writing an app for iOS 9.3 using swift and need a map to show user location. I initialize CLLocationManager and its delegate, I configure info.plist Privacy - Location Usage Description string...
Renaerenaissance asked 1/5, 2016 at 21:24

3

Solved

I am sending user location at n time on server for tracking. Working fine in foreground and background mode. But my question is bit more theoretical.. Does my location update service remain running...
Mueller asked 2/6, 2014 at 4:45

12

Solved

I want to find current location name from latitude and longitude, Here is my code snippet I tried but my log shows null value in all the places except in placemark, placemark.ISOcountryCode and pl...
Dreadfully asked 20/5, 2013 at 10:56

4

Solved

I am using startMonitoringSignificantLocationChanges for getting the (lat,lon) values.My problem is (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *...
Ramrod asked 23/8, 2011 at 6:8

© 2022 - 2025 — McMap. All rights reserved.