iOS原生app接入
为什么使用原生的UIWebview,加载拼接的uir,webview无法加载。
http://m.amap.com/navi/?dest=116.470098,39.992838&destName=阜通西&hideRouteIcon=1&key="我的key"
webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://m.amap.com/navi/?dest=116.470098,39.992838&destName=阜通西&hideRouteIcon=1&key="我的key"]];
[self.view addSubview: webView];
webView.delegate =self;
[webView loadRequest:request];