AHDirectionsObject is an NSObject class designed to make opening other maps applications a breeze. This class is developed for our newest iOS App All Hours, please be sure to check it out!
Supports
#import "AHDirectionsObject.h"
In your .m file add
AHDirectionsObject *directions = [[AHDirectionsObject alloc] init];
To declare all scemers you must add LSApplicationQueriesSchemes
in your project .plst file, like so...
```
For more information on these changes see this video from WWDC 2015
[directions directionsApplications];
directionsHandle
. This method has two parameters - the location (CLLocation
) and the type of application (NSString
)[directions directionsHandle:[[CLLocation alloc] initWithLatitude:YOUR_LATITUDE_FLOAT longitude:YOUR_LONGITUDE_FLOAT] type:@"citymapper"];
Or, set as nil
to open the native Apple Maps.
type
is passed which is not available the class will revert to Apple Maps