Hi I tried using this to open the maps app with current location and get directions to whatever I put for the directions. When I click the button on my iPhone nothing happens but it’s being clicked. What am I doing wrong?
NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=Current+Location&daddr=%@ %@ %@ %@",
streetString , cityString, stateString, zipString];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];
Make sure you’re escaping the the NSString using stringByAddingPercentEscapesUsingEncoding