I want to put Start and End image with overlay in an iPhone/iPad application. I have start and end Lattitude and Longitude values and want to draw overlay between start and end points and put start image on Start point and End Image on End point.
I have googled but What I found is MapKit gets one image and set it on both Start and End points, could not find any help for 2nd image.
like
annotationView.image=[UIImage imageNamed:@"parkingIcon.png"];
It only set one image for both start and end points. But I want to put different images for both points.
Please help.
I got that … thanks for all who tried to help me out. the Complete solution is
Create a class
ViewDidLoad method code :
viewForAnnotation code :
This is how you can add separate image for every point on MapKit.