-
Notifications
You must be signed in to change notification settings - Fork 23
Home
HACLocationManager is written in Objective-C, very easy to use and effective class.
Requests are made using blocks, giving answers through their delegates. If syntax is very comfortable and intuitive.
Use singleton design pattern and its compatibility is complete with iOS7 or higher.
##Requirements & Dependecies
- iOS >= 6.0
- ARC enabled
- CoreLocation Framework
##Installation
####CocoaPods: Building
####Manual install:
- Copy
HACLocationManager.h
andHACLocationManager.m
to your project - Manual install HACLocationManager
##Usage
###iOS 8
Since iOS 8 it is required to add NSLocationWhenInUseUsageDescription
key to your Info.plist
file. Value for this key will be a description of UIAlertView presented to user while asking for location permission. See Apple documentation for more info.
Basically all you need to do is to add single entry in your Info.plist
file. Add key NSLocationWhenInUseUsageDescription
, and select type String
. The value you enter for this entry will be shown as text in UIAlertView presented to user first time you try to determine his location.
In the end it should look similar to this: