在Xcode 7.3(使用Swift)中,我创建了最简单的地图示例:
出于某种原因,我的插座没有自动完成功能。即使我输入' ma'它没有提供插座名称' mapView'。
任何人都可以帮助自动完成工作吗?
代码来自:ViewController.swift
import UIKit
import MapKit
class ViewController: UIViewController {
@IBOutlet weak var mapView: MKMapView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
// mapView doesnt appear when I begin to type it
// also it doesn't show any functions when I type mapView.
}
我还将我的项目上传到dropbox: https://www.dropbox.com/sh/rgefwafhanti1wa/AABhQt8TsbvesaO9zg-SydlRa?dl=0
答案 0 :(得分:0)
您还需要在MapKit
中为目标添加Build Phases
框架。