ios - MKMapViewAnnotation Image from custom image different for many pins -


I'm trying to create several pins from a database of locations, with each custom image. Images base are passed to the server in the 64 format, I am able to create a UIImage to base64 data, but I can not upload images as icons instead of pins for each annotation Are there.

Any ideas how can I do this?

I tried to help in following these SO terms, but they can only make one preset one, I can not understand how all of these can be edited

Any thoughts?

Here is my code to pin / annotation, anyone interested:

  function mapTheseCoordinates (Lat: Double, LNG: Double, username: NSString, full name: NSString) {go home = CLLocationCoordinate2D (Latitude: Latitude, Longitude: LNG) // 2 to period = MKCoordinateSpanMake (0.15, 0.15) to the area = MKCoordinateRegion (in the middle: space, period: period) mapView.setRegion (area , Animated: true) // give 3 annotations = MKPointAnnotation () annotation.setCoordinate (location) annotation.titl e = username nnotation.subtitle = complete Name mapView.addAnnotation (comment)}  

You can (; MKAnnotation & gt Do; & lt) annotation of ID {MKPinAnnotationView: (MKMapView *) MapView viewForAnnotation: (MKAnnotationView *) using this representative event MapView - MKMapView, even if you are different according to your comment

  Can Change Images * MyPin = [[Mk Pin Annotation Weve Alloc] Init With Annotation: Annotation Reuse Identifier: @ "On" "]; //MyPin.pinColor = MKPinAnnotationColorPurple; MyPin.highlighted = No; MyPin.image = [UIImage image named: @ "pin_read"]; Return MyPin; }  

The delegate event everyone will be called to forget for determining representative to add annotations, but not MapView

  [mapLocation addAnnotation : AnnotObj];  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -