答案 0 :(得分:0)
您是否尝试通过添加"?"
使其成为可选项答案 1 :(得分:0)
我找到了这个提示@objc:
@objc
private override init(entity: NSEntityDescription, insertInto context: NSManagedObjectContext?) {
super.init(entity: entity, insertInto: context)
self.coordinate = CLLocationCoordinate2DMake(self.latitude, self.longitude)
self.overlayCircle = MKCircle(center: self.coordinate, radius: self.radius as CLLocationDistance)
}