Latest | 0.1.0 |
---|---|
Homepage | https://github.com/hyperoslo/HYPLocationManager |
License | MIT |
Platforms | ios 6.0, requires ARC |
Frameworks | CoreLocation, MapKit |
Authors |
HYPLocationManager is an easy to use interface for CLLocationManager. If you need to get your current coordinates, or show a specific coordinate on a map, or even get directions from your current location to anywhere, we got you covered.
How to get my current location with HYPLocationManager?
#pragma mark - Actions
- (IBAction)showMyCurrentLocation
{
HYPLocationManager *manager = [[HYPLocationManager alloc] init];
manager.delegate = self;
[manager showCurrentLocation];
}
#pragma mark - HYPLocationManagerDelegate
- (void)locationManager:(HYPLocationManager *)locationManager
didUpdateCoordinateRegion:(MKCoordinateRegion)coordinateRegion
{
// do something with your coordinates, or show them in a mapView by doing this
[locationManager centerMapView:self.mapView usingCoordinate:coordinateRegion.center];
}
How to get directions to Hyper from my current location?
HYPLocationManager *manager = [[HYPLocationManager alloc] init];
[manager showDirectionsToCoordinate:hyperCoordinate named:@"Hyper"];
License
HYPLocationManager is fully open source under the MIT license. Check LICENSE for details.
Contributions
If there’s something you would like to improve please create a friendly and constructive issue, getting your feedback would be awesome. Have a great day.
Latest podspec
{ "name": "HYPLocationManager", "version": "0.1.0", "summary": "The easiert way to use CLLocationManager.", "homepage": "https://github.com/hyperoslo/HYPLocationManager", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Elvis Nunez": "[email protected]" }, "platforms": { "ios": "6.0" }, "source": { "git": "https://github.com/hyperoslo/HYPLocationManager.git", "tag": "0.1.0" }, "source_files": "HYPLocationManager/", "frameworks": [ "CoreLocation", "MapKit" ], "requires_arc": true }
Fri, 04 Mar 2016 10:18:03 +0000