0
NSString * googleMapsURLString1 = [NSString stringWithFormat:@「http://maps.google.com/?saddr=%1.6f,%1.6f&output=embed」,floatLati,floatLongi];不能在xcode 4.6中使用webview
NSString * googleMapsURLString1 = [NSString stringWithFormat:@「http://maps.google.com/?saddr=%1.6f,%1.6f&output=embed」,floatLati,floatLongi];不能在xcode 4.6中使用webview
試試這個,
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];
犯錯,我覺得需要更多的細節。 – trojanfoe 2013-02-18 13:18:26