Ich möchte Google Map App in iOS 6 programmgesteuert öffnen. Ich habe versucht, die Karten in indem URL zu öffnen - Karten ..... aber es öffnet sich noch in der SafariÖffnen Sie Google Maps App in iOS 6
5
A
Antwort
11
[[UIApplication sharedApplication] canOpenURL:
[NSURL URLWithString:@"comgooglemaps://"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:
@"comgooglemaps://?center=40.765819,-73.975866&zoom=14&views=traffic"]];
Referenz: https://developers.google.com/maps/documentation/ios/urlscheme
0
versuchen, diese
Die Domain muss sei maps.apple.com.
Ein Parameter kann nicht q = * sein, wenn der Wert eine URL ist (also KML nicht abgeholt wird). Die Parameter dürfen nicht view = text oder dirflg = r enthalten.
https://developer.apple.com/library/safari/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html#//apple_ref/doc/uid/TP40007894-SW1
Verwandte Themen
- 1. Embedded Google Maps App auf iOS öffnen
- 2. IOS 6 Maps Crash
- 3. iOS Google Maps Frage
- 4. Öffnen Sie Google Maps von Hyperlink
- 5. Öffnen Sie iCloud Drive in iOS App
- 6. So implementieren Sie iOS Google Maps SDK
- 7. Der aktuelle Standort funktioniert nicht mit Apple Maps IOS 6
- 8. iOS: So aktivieren Sie Audioanweisungen in Google Maps
- 9. Google Maps in React-Native (iOS)
- 10. iPhone- Öffnen Sie Einstellungen von meiner Anwendung iOS 6
- 11. iOS - Öffnen Sie Apple Maps mit Breiten- und Längengradrichtungen
- 12. Google Maps App Absturzberichterstattung
- 13. Öffnen von Wegbeschreibungen in Google Maps direkt
- 14. Öffnen Sie die Apple Maps App mit bestimmten MKRoute-Informationen
- 15. Google Maps iOS SDK Nachtmodus
- 16. Google Maps iOS Polylinien entfernen
- 17. Öffnen Sie Google Maps vom iPhone und Route anzeigen
- 18. Google Maps iOS SDK - Suche nach Orten
- 19. iOS Google Maps SDK vs MapKit Scrollen
- 20. Reverse-Geocoding mit Google Maps api iOS
- 21. Google maps infowindow events auf öffnen
- 22. Öffnen iOS App vom Browser
- 23. So integrieren Sie neue Google Map App mit iOS App
- 24. generieren Richtungen mit Maps-App iOS
- 25. Öffnen Sie einen Google Maps-Link mit mehreren Markern
- 26. Marker aus Google Maps entfernen iOS
- 27. Google Maps decodiert GMSPath inkorrekt iOS
- 28. Draw Straight Line Google Maps iOS
- 29. iOS Google Maps Api Tiled Overlays
- 30. Integrieren Sie Google Maps API in eine iPhone App