When I press my button, I want to add an annotation to my mapview.
let annotation = MKPointAnnotation()
annoation.coordinate = (myrightCoordinates)
let annoationView = MKAnnotationView(annotation: annotation, reuseIdentifier: "ident")
annoationView.image = UIImage(named: "single_base")
mapView.addAnnotation(annoationView.annotation!)
My annoation appears, but not the image. What's wrong? The image name is correct, I check this minimum five times -.- I googled a lot and found everytime snippets like that. I want to solve that without CustomAnnotationClass or something like this.
Thanks for help :)