Easy to use iOS class to manage location system, very useful.
This is allows you to tracking user location, monitoring regions and obtain the user location.
- Clone the repository:
$ git clone git@github.com:rcabamo/RCLocationManager.git
-
Check out the sample project.
-
Drag the
RCLocationManager
folder into your project. -
Include the header file:
#import "RCLocationManager.h"
- Create a
RCLocationManager
and suscribe the notifications. Example:
RCLocationManager *locationManager = [[RCLocationManager alloc] initWithUserDistanceFilter:kCLLocationAccuracyHundredMeters userDesiredAccuracy:kCLLocationAccuracyBest purpose:@"My custom purpose message" delegate:self];
- Check the header file for all the things you can customize.
RCLocationManager
requires your application to be linked against the CoreLocation.framework
framework.
- Supports ARC. If you want to use it in a project without ARC, mark
RCLocationManager.m
with the linker flag-fobjc-arc
.
##Credits
Thanks to Alejandro Martinez for his help :)
Copyright 2012 Ricardo Caballero (hello@rcabamo.es)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Attribution is not required, but appreciated.