【发布时间】:2016-08-06 11:48:14
【问题描述】:
在 Xcode 7.3(使用 Swift)中,我创建了最简单的地图示例:
- 导入的 MapKit
- 创建了一个名为 mapView 的插座
出于某种原因,我的插座没有自动完成功能。即使我输入“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
【问题讨论】:
标签: ios xcode swift autocomplete xcode7