草庐IT

thoroughfare

全部标签

ios - 绑定(bind)必须有可选类型 Swift

我遇到了这个错误,但我不知道如何修复它。我已经完成了这里的所有答案,但我尝试的任何方法都不起作用。这是我的代码:CLGeocoder().reverseGeocodeLocation(location,completionHandler:{(placemarks,error)->Voidinvartitle=""if(error==nil){ifletp=CLPlacemark(placemark:placemarks![0]as!CLPlacemark){varsubThoroughfare:String=""varthoroughfare:String=""ifp.subThoro