คำถามติดแท็ก apple-maps

9
วิธีเปิดแอพแผนที่โดยใช้โปรแกรมพร้อมพิกัดอย่างรวดเร็ว?
ฉันมีละติจูดและลองจิจูดที่ต้องการเปิดในแอปพลิเคชันแผนที่ของฉัน ฉันพยายามรหัสนี้จากที่นี่ func goToMap(){ var lat1 : NSString = self.venueLat var lng1 : NSString = self.venueLng var latitude:CLLocationDegrees = lat1.doubleValue var longitude:CLLocationDegrees = lng1.doubleValue var coordinate = CLLocationCoordinate2DMake(latitude, longitude) var placemark : MKPlacemark = MKPlacemark(coordinate: coordinate, addressDictionary:nil) var mapItem:MKMapItem = MKMapItem(placemark: placemark) mapItem.name = "Target location" let launchOptions:NSDictionary = NSDictionary(object: …
107 ios  swift  apple-maps 
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.