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)
            }
        }
    }
}

inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.