0

I developed an app to open google map and search the given location name.

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString   stringWithFormat:@"http://maps.google.com/maps?q=%@",locationName]]];

i can't open the map for few location.Thanks in advance.

Yogesh Suthar
  • 30,424
  • 18
  • 72
  • 100
Suren
  • 24
  • 7
  • Can you provide the location name for which the map is opening and for which the name is not opening? – Yogesh Suthar May 05 '15 at 11:06
  • Do these locations have spaces or other special characters in their name? You'll need to escape those characters. –  May 05 '15 at 11:16
  • map open for the location FUZHOU, CHINA and for the location SAVANNAH, GA, UNITED STATES OF AMERICA is not opened. – Suren May 05 '15 at 11:30
  • Already answered [here](http://stackoverflow.com/questions/2534888/uiapplication-openurl-not-working-with-formatted-nsstring?answertab=active#tab-top) – XeNoN May 05 '15 at 12:25

0 Answers0