NSString * googleMapsURLString1 = [NSString stringWithFormat:@“http://maps.google.com/?saddr=%1.6f,%1.6f&output=embed”,floatLati,floatLongi];
答案 0 :(得分: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];