ios - How do I set a custom image on an map annotation? -


I want to set a custom image to SKAnnotation , but when I send the image path markers I set the image of the marker with the following code:

Type: @ "png"]; Annotation.imageSize = 64;

I use a default image:

  annotation.annotationType = SKAnnotationTypeGreen;  

Markers appear correctly

How do I set a custom image on a map annotation?

png-8 file format is not supported. Using the png-24 file works properly.


Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -