core-location

Application crashes when asking if user wants to use Location Services

二次信任 提交于 2019-12-08 10:05:04
问题 I have an iPhone app that is using CoreLocation. Upon first installing the app, the iPhone system message is displayed asking whether or not the user wants to allow location services, if they click yes, my app suddenly displays the first screen of my app (I'm using a navigation controller), and crashes. This is what I see in the log - warning: UUID mismatch detected with the loaded library - on disk is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library

How To Tell If User Is At A Specific Location?

独自空忆成欢 提交于 2019-12-08 09:42:02
问题 Essentially what I need to do is find out if a user is at a specific place (IE at a venue). And if the user is, allow access to a specific ViewController. I've been looking high and low for an answer to this problem online and surprisingly I haven't found anything. I will say I'm pretty new to iOS development. I don't need anything as complex as geofencing like in the Ray Wenderlich tutorial, and I don't need to run it in the background. I also don't need to know if they entered or left. Just

didEnterRegion never gets called in ios

隐身守侯 提交于 2019-12-08 08:52:17
问题 Not sure what I'm doing wrong. I want a local notification to be triggered, telling the user that he's near by a particular object. My code is as following: - (void)viewDidLoad { self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; self.locationManager.delegate = self; [self.locationManager startUpdatingLocation]; CLLocationDistance radius = 1000.00; CLLocationCoordinate2D location2D = CLLocationCoordinate2DMake(

Custom curent location Annotation pin not updating with core location

丶灬走出姿态 提交于 2019-12-08 08:41:29
问题 Trying to add a custom pin for current location, However the location does not update. Even after setting setShowsUserLocation = YES; - (id)initWithAnnotation:(id <MKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithAnnotation:annotation reuseIdentifier:reuseIdentifier]; if ([[annotation title] isEqualToString:@"Current Location"]) { self.image = [UIImage imageNamed:[NSString stringWithFormat:@"cursor_%i.png", [[Session instance].current_option

Background location service stops working in a period of time

感情迁移 提交于 2019-12-08 08:12:51
问题 I'm developing an iOS application that users can save their traveling route to server (by posting their locations through API). The issue I am struggling with is several users reported that the route they saved is interrupted in the middle of the trip. In detail, when users review their saved route on map, there is a part of route being just a straight line because somehow locations of that route section are not sent to server or just because the device can not receive locations at that time.

CLLocationManager only monitors regions the first time the app is run after install

爱⌒轻易说出口 提交于 2019-12-08 07:35:42
问题 I have an iOS app which is a tabbed application, with 3 view controllers, all of which need to know when the phone enters specific geographical regions. The regions which we monitor for are supplied at run time over a web interface, so we need to periodically clear the regions that the CLLocationManager is monitoring for and add new ones. The CLLocationManager object is a member variable of a singleton class which manages the connection with the web server as well. The problem that I have is

Determine whether a CLLocationCoordinate2D is within a defined region (bounds)?

丶灬走出姿态 提交于 2019-12-08 06:11:32
问题 I am trying to find a simple method to determine whether a CLLocationCoordinate2D lies within the boundaries of an arbitrary shape defined by a series of other CLLocationCoordinate2D's. The shapes may be large enough that great-circle paths need to be considered. CL used to have a circular region and the containsCoordinate: call to test against, but this has been deprecated in iOS7 and the dox do not contain a hint of what might replace it. I cannot find any other examples, notably one that

iPhone reverse geocoding: give all possible streets/suburbs?

送分小仙女□ 提交于 2019-12-08 05:48:23
问题 I know Core Location isnt always accurate on the iPhone. Is there a way to use the location (lat/long) along with the accuracy to then grab all of the possible suburbs/streets in that area? So instead of using the reverse geocoding and having it guess the 'best possible suburb/street, is there a way to make it give an array (or in some other format) of all the possible suburbs/streets that it could consider? Thanks!! 回答1: So, the best approach to do this, is using the Google maps API. For

how is it that CLLocationManager gets a location when Airplane Mode is ON

本小妞迷上赌 提交于 2019-12-08 03:05:51
问题 My app uses CLLocationManager to get location updates from the device. I had assumed that when the device was in Airplane Mode, I would not get location updates. But I do. The reason I assumed this is because Apple says that Airplane mode turns off Wifi, Cellular, Bluetooth, and GPS. See: http://support.apple.com/kb/ht1355 So, how is it that I'm getting a location update with a coordinate that seems reasonable? 回答1: I've developed an app that heavily uses the user location, so I had to check

iPhone: maximumElapsedTimeForCachedLocation used to remove cache value of core location

混江龙づ霸主 提交于 2019-12-08 02:57:54
问题 In certain cases, cached values are immediately returned when starting a location service. Any location with a time interval older than this value will be considered invalid. @property (nonatomic, assign) NSTimeInterval maximumElapsedTimeForCachedLocation Declared In UABaseLocationProvider.h Do any of you know how to use this maximumElapsedTimeForCachedLocation in Core Location for removing the cache value of the old location? 来源: https://stackoverflow.com/questions/12909910/iphone