G
G
Georgy Sabanov2015-12-02 16:05:26
Swift
Georgy Sabanov, 2015-12-02 16:05:26

How to put different pins on MapView?

I have a screen. You need to make a different pin for each face. Well, or something else.
Here is a picture, you need to do the same:
s13.postimg.org/gnauwjxt3/image.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cassar, 2015-12-03
@Cassar

You can provide a reference in your subclass MKAnnotationfor an entity representing the user whose photo will be displayed, and in

optional func mapView(_ mapView: MKMapView,
    viewForAnnotation annotation: MKAnnotation) -> MKAnnotationView?
set the view as a picture of the user's avatar, taken from annotation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question