gpt4 book ai didi

ios - 显示 google map API 时出现问题

转载 作者:行者123 更新时间:2023-11-29 05:01:18 26 4
gpt4 key购买 nike

当我使用谷歌地图 API 时,一切都很顺利,但是,我注意到 map 包含一些无法操作的控件(按钮),这是我正在谈论的内容的屏幕截图: enter image description here

右上角的三个按钮和左上角的箭头不起作用。我的相关代码是这样的:

NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f&hl=fr&output=mobile&om=5",latUtilisateur,longUtilisateur,latStation,longStation];

//Create a URL object.
NSURL *url = [NSURL URLWithString:urlString];

//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

//Load the request in the UIWebView.
[webView loadRequest:requestObj];

我可以将其从 map 上删除吗?

最佳答案

为什么不使用MapKit?您可以添加 MKMapView 并将中心添加到地理坐标,而不是添加 UIWebView。它由 Apple(公共(public) API)制作,因此非常流畅,并且与 iOS 上使用 map 的所有其他应用程序一样工作。

关于ios - 显示 google map API 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6855852/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com