0

NSString *googleMapsURLString1 = [NSString stringWithFormat:@" http://maps.google.com/?saddr=%1.6f,%1.6f&output=embed " ,floatLati, floatLongi];

4

1 回答 1

0

尝试这个,

 NSString *googleMapsURLString1 = [NSString stringWithFormat:@"http://maps.google.com/?saddr=%1.6f,%1.6f&output=embed",floatLati,floatLongi];
    NSURL *url = [NSURL URLWithString:googleMapsURLString1];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
 [webView loadRequest:requestObj];
于 2013-02-18T13:29:42.517 回答