I need the user to choose whether he wants to open the map using Safari or the map application, but the fact is that I am doing this:
NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f&dirflg=d", location.coordinate.latitude, location.coordinate.longitude, destinationLatitude, destinationLongitude]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
or the same thing:
[NSString stringWithFormat:@"maps://maps.google.com/maps?
Both of them open maps (I think this is because Safari is being redirected to maps)
Is there a way to make safari open it?
source share