How can I put an optional value on that condition?
Asked
Viewed 15 times
1
How can I put an optional value on this condition?
func mapView(mapView: MKMapView, regionDidChangeAnimated animated: Bool) {
if var annotations = mapView.annotations {
for annotation in annotations {
if let a = annotation as? MKPointAnnotation {
encontrarEnderecoPara(a)
}
}
}
}