Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以检查用户在他/她的设备上是否有某个应用程序(google.maps、yandex.maps 或本地地图)来制作适合路由的应用程序列表?
您可以使用 URL 方案检查用户是否在设备(google.maps、yandex.maps 或本地地图)上安装了此应用程序。
谷歌地图:
let appURL = URL(string: “comgooglemaps://”) if UIApplication.shared.canOpenURL(appURL!) { // code for open URL print(“Can Open URL”) }