core-location

CoreLocation thread crash Crashed: com.apple.CoreLocation.ConnectionClient.0x16fcb870.events

亡梦爱人 提交于 2019-12-12 16:12:54
问题 I'm getting this crash in Apple's CoreLocation thread in our production app. I am not able to reproduce it in my testing also its hard to figure out as its inside CoreLocation. At the moment its happening with few percentage of population but I can see its getting bigger. Crashed: com.apple.CoreLocation.ConnectionClient.0x16fcb870.events 0 CoreLocation 0x2aa2db54 CLClientCreateIso6709Notation + 53675 1 CoreLocation 0x2aa2dc7b CLClientCreateIso6709Notation + 53970 2 CoreLocation 0x2aa2de03

Varying content with CLPlacemark, administrativeArea, iOS6/iOS7

▼魔方 西西 提交于 2019-12-12 15:16:39
问题 I'm planning to make an app for ios7, and have an issue with the administrativeArea Placemark Attribute. For iOS6 i get the full name of the administrative area (ex. "California"), but for the iOS7, I get the value of "CA". This is a problem when its so varying. Is there any way I can control this input so its more consistent? The apple docs doesnt eigher explain this in details.. http://developer.apple.com/library/mac/documentation/CoreLocation/Reference/CLPlacemark_class/Reference/Reference

valid way to calculate angle between 2 CLLocations?

牧云@^-^@ 提交于 2019-12-12 14:22:56
问题 Is this a valid way to calculate an angle (in radians) from one CLLocation to another? -(float)angleFromLocation:(CLLocationCoordinate2D)start toLocation:(CLLocationCoordinate2D)end { float deltaX = start.latitude - end.latitude; float deltaY = start.longitude - end.longitude; float ang = atan2(deltaY, deltaX); return ang;} Please advise! Any help will be much appreciated. 回答1: I used a variant of this question and answer and it works well: double DegreesToRadians(double degrees) {return

Blue banner “Your app is using your location” is not showing after exiting my app

一曲冷凌霜 提交于 2019-12-12 11:26:04
问题 My application is using core location in background mode, when app is in background mode and sending GPS coordinates periodically, the blue banner "Your app is using your location" is not showing (like google map app for example). Any idea of what I could have missed ? 回答1: To show blue bar, you should 1: Enable Background Location Updates in target Capabilities. Then set locationManager allowsBackgroundLocationUpdates to YES; 2: Add NSLocationWhenInUseUsageDescription in info.plist file (8.0

iOS 7 CoreLocation: region monitoring fails on the first time after location services are authorised

本秂侑毒 提交于 2019-12-12 10:37:11
问题 I identified a strange behaviour on my app using CoreLocation. I'm using the region monitoring functionality but, after authorising the location services (via popup or settings->Location Services) region monitoring fails (The operation couldn’t be completed. kCLErrorDomain error 5.). If I close the app and restart (therefore already authorised) everything works as expected. My code looks like this: -(void)initializeLocationServices { NSLog(@"Started location services"); locationManager = [

how to get the current location position in map on iphone

不想你离开。 提交于 2019-12-12 10:24:32
问题 i am creating an application in which i want to get the current location of the user where he is and display it on the map and when the user reaches the destination location from current location the destination location should also be pointed in the map along the direction of travel. In my xib i have added a button & on action(showDirectionsToHere) of button i have called map I have added the following code in my appdelegate but it gives me an error: - (void)locationManager:

Use of Standard location service for tracking traveled distance in a foreground/background app

淺唱寂寞╮ 提交于 2019-12-12 09:02:16
问题 I have to develop a kind of GPS navigation application that needs to constantly keep track of the position of the user, which is moving by car. In the specific, I don't have to display the current location on a map but just to record its position with the best possible precision in order to calculate the total distance traveled. Of course the application needs to continue its work in background if the user switch to another app, a phone call come in or something like that… From the tests I

Stuck with ObjC and MapKit CoreLocation

你。 提交于 2019-12-12 05:49:27
问题 I've been getting into mapkit and corelocation for ios. I'm just trying to display a map and zoom in on my current location for now. I can draw the map, with my location. I can get my current location. I just can't get the location data into the map method. I'm a bit of a noob, but thought I knew what I was doing up until this point! :) Any help is appreciated. My code is here, which sort of works but plonks me in the middle of the Atlantic at 0 long and 0 lat! - (void)viewDidLoad { [super

Estimote SDK - Beacons raging in background

試著忘記壹切 提交于 2019-12-12 04:53:33
问题 First question is better is Estimote SDK or CoreLocation framework? I have app which is finding the beacons but now i must made an app which will find beacons when application is in background or even is terminated. 回答1: Setting up background detection is pretty automatic in iOS so long as you do it in your AppDelegate and receive callbacks in that class: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { _locationManager = [

Location not updating before the view loads

元气小坏坏 提交于 2019-12-12 04:52:49
问题 I have a variable "zipCode" that I am trying to update to the users current location before the views load in my scrollView. Currently it updates to the correct location once I segue out and back into the the scrollView view controller. Also where I should implement the change for authorization update for a fresh install. Thank you for any help in advanced. import UIKit import CoreLocation var zipCode = 90210 var location = [""] class ViewController: UIViewController,