我刚刚将 ray wenderlich mapkit 教程升级为 MKPlacemark 的 xcode 7 错误。我仍然只是编码新手,我不确定从哪里开始解决这个错误。我搜索但知道有用。
谢谢你的帮助。非常感谢。
http://www.raywenderlich.com/90971/introduction-mapkit-swift-tutorial
这是我遇到错误的代码:
// annotation callout opens this mapItem in Maps app
func mapItem() -> MKMapItem {
let addressDict = [String(kABPersonAddressStreetKey): self.subtitle]
let placemark = MKPlacemark(coordinate: self.coordinate, addressDictionary: addressDict)
let mapItem = MKMapItem(placemark: placemark)
mapItem.name = self.title
return mapItem
错误是:
无法使用列表类型 'coordinate:CLLocationCoordinate2D, addressDictionary:[String : String?])' 的参数调用类型 'mkplacemark' 的初始化程序
再次感谢,
特拉维斯。