core-location

Detect GPS Hardware in iphone

江枫思渺然 提交于 2019-12-01 01:29:00
I want to know how to detect GPS HardWare in present in Iphone or not Even though you can not determine this using the SDK, you may exploit your knowledge of current models. If you limit yourself to iPhone 3G, iPhone 3GS and iPod Touch 2nd generation (I do not personally support older iPhone edge or iPod Touch 1st generation), then you already know that the iPhone models ship with a real AGPS unit while the iPod Touch 2nd generation can use - if and when available - geotagged wifi hot spots. You may then use the following method to determine the model you are running on: - (NSString *)

CLBeacon - how to change rssi, major and minor?

我的梦境 提交于 2019-12-01 01:10:14
My question is basically - how do I get to modify iBeacon's default settings like major, minor and RSSI? There are different ways to set these values depending on what you mean by an iBeacon: Hardware iBeacons Each Beacon vendor has different ways of setting these values. Some are changed via a bluetooth service that is typically managed with a proprietary iOS or Android app. (Examples include Radius Networks ' battery-powered and USB beacons and TwoCanoes beacons .) Radius Networks' PiBeacon includes an SD card with an editable file containing the identifiers. Other vendors like Estimote

iPhone Core Location: Custom pin image disappears when map type changes

只愿长相守 提交于 2019-11-30 21:14:44
I have a segmented controller which sits on a MKMapView. When I change MKMapType, the image of my custom pins revert to the default red. The title and subtitle, along with coordinates remain intact. Can anyone shed some light on a possible solution? dc. I had a similar problem a while ago. Why does a custom MKMapView annotation image disappear on touch? Make sure you're using MKAnnotationView instead of MKPinAnnotationView everywhere in your viewForAnnotation method. 来源: https://stackoverflow.com/questions/3577691/iphone-core-location-custom-pin-image-disappears-when-map-type-changes

iOS find average speed

谁说我不能喝 提交于 2019-11-30 20:33:38
问题 I already have something that shows me my current speed and top speed (max speed in the code below) Now I want to make something that calculates my average speed with core location. How? thanks. - (void)locationUpdate:(CLLocation *)location { speedLabel.text = [NSString stringWithFormat:@"%.2f", [location speed]*2.236936284]; Here is the float for top speed float currentSpeed = [location speed]*2.236936284; if(currentSpeed - maxSpeed >= 0.01){ maxSpeed = currentSpeed; maxspeedlabel.text =

Detect GPS Hardware in iphone

自闭症网瘾萝莉.ら 提交于 2019-11-30 19:41:10
问题 I want to know how to detect GPS HardWare in present in Iphone or not 回答1: Even though you can not determine this using the SDK, you may exploit your knowledge of current models. If you limit yourself to iPhone 3G, iPhone 3GS and iPod Touch 2nd generation (I do not personally support older iPhone edge or iPod Touch 1st generation), then you already know that the iPhone models ship with a real AGPS unit while the iPod Touch 2nd generation can use - if and when available - geotagged wifi hot

iBeacon monitoring and ranging in background

早过忘川 提交于 2019-11-30 17:26:55
问题 I took several months developing an application based on iBeacons and I'm really frustrated. The general idea is that when a beacon is detected, the user is notified with information specific to that iBeacon. The application was designed as follows, all iBeacons have the same UUID, the Major determines the building (Museum, shop...) and the Minor the specific product (pictures, shoes...). So this application may serve multiple clients. When the application starts, I begin to do monitoring and

Core Location delegate methods not getting called in iOS 8.3 Xcode 6.3.1

纵然是瞬间 提交于 2019-11-30 17:25:58
I am trying to get the user's current location using the Core Location Framework in Xcode 6.3.1, I did following things: Added Core Location Framework under Target -> General -> Linked Frameworks & Libraries My ViewController.h file is as shown below, #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface ViewController : UIViewController<CLLocationManagerDelegate> @property (weak, nonatomic) IBOutlet UILabel *lblLatitude; @property (weak, nonatomic) IBOutlet UILabel *lblLongitude; @property (weak, nonatomic) IBOutlet UILabel *lblAddress; @property (strong, nonatomic)

Is it possible to use only region monitoring + GSM and to get not more than 5 km horizontalAccuracy?

↘锁芯ラ 提交于 2019-11-30 15:35:21
I would like to share the info of my performed testing scenarios and to ask you to share your experience with region monitoring. So, I have registered two opposite regions (A and B) with 5 km radius and 1 km desiredAccuracy, with the 20 km distance between them. However, I haven't received any didEnterRegion/didExitRegion events when traveling from A to B. In my app prototype, I also put two buttons (for testing purposes): one starts significant change and another standard location monitoring. Both prints didUpdateToLocation events on-screen-log. So, after getting to the center of region B and

ios deferred location updates fail to defer

夙愿已清 提交于 2019-11-30 14:43:40
I am looking into using deferred location updates for an iOS activity tracker, which allows location services in background. I've implemented the suggested code snippets (see below). In Xcode debugging, deferred locations attempt to start a few times until location data comes in at about 1 per second. After that, it claims to succeed in starting deferrals, and the callback for the finish trigger also succeeds after the specified time period expires. However during the time, the location handler still runs once per second. I've read that this is because the phone hasn't deemed itself ready to

What is the difference between “import” of framework and “linking” with framework?

我怕爱的太早我们不能终老 提交于 2019-11-30 13:34:12
I'm new in Xcode and in Swift language. I'm trying to understand the usage of the "import" in ViewController and the "framework import" in my project. Example: if I use CoreLocation , need I only import CoreLocation in my ViewController, or I need to import CoreLocation.framework in my project too? I saying this because everything works well only using import CoreLocation at the top of my ViewController, without import its framework. Thanks! The import in the source code facilitates compilation of your code, ensuring that the correct headers are found. The "Link Binary with Libraries" section