Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)application:(UIApplication *)application didReceiveLocalNotification:(NSDictionary *)userInfo {
- if (oneAlert != nil){
- //bring up apple maps directions
- NSDictionary *options = @{MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeWalking};
- MKMapItem *currentLocationMapItem = [MKMapItem mapItemForCurrentLocation];
- NSLog(@"one alert received");
- [MKMapItem openMapsWithItems:@[currentLocationMapItem, oneAlert.closeMatch] launchOptions:options];
- NSLog(@"apple maps opened");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement