Swift:无法用地址初始化MKPlaceMark

时间:2015-03-17 14:59:19

标签: swift mapkit

找不到类型' MKPlacemark'的初始化程序。接受类型'的参数列表(坐标:CLLocationCoordinate2D,addressDictionary:[NSString:String?])'

let addressDict =
                [kABPersonAddressStreetKey as NSString: self.store.address1,
                    kABPersonAddressCityKey as NSString: self.store.city,
                    kABPersonAddressStateKey as NSString: self.store.state,
                    kABPersonAddressZIPKey as NSString: self.store.zipCode]

                let place = MKPlacemark(coordinate: placemark.location.coordinate, addressDictionary: addressDict)

MLPlacemark的初始化给了我这个错误。我做错了什么?

0 个答案:

没有答案