【发布时间】:2019-02-03 04:32:07
【问题描述】:
我正在尝试在我的应用中创建一个显示餐厅位置的视图。当用户进入视图时,它会显示类似这样的
而是用大头针和更放大的视图显示餐厅的位置。我是 MapKit 新手,一直没有取得任何进展。
这就是我的视图控制器的组成部分。
import UIKit
import MapKit
class FD1ViewController: UIViewController {
@IBOutlet weak var mapView: MKMapView!
private let locationManager = CLLocationManager()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
【问题讨论】:
标签: swift annotations location mkmapview