不在xcode 4.6中使用webview

时间:2013-02-18 13:17:26

标签: xcode ios6

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

1 个答案:

答案 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];
相关问题