UIApplication openUrl not working with formatted NSString
Posted
by Daniel
on Stack Overflow
See other posts from Stack Overflow
or by Daniel
Published on 2010-03-28T22:47:53Z
Indexed on
2010/03/28
22:53 UTC
Read the original article
Hit count: 439
I have the following code to open google maps:
NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@, Anchorage, AK",addressString];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
But it doesn't work and there is no error. It just doesn't open.
© Stack Overflow or respective owner