i m droping pin for current location.And also i want to drop another pin after some interval using another coordinates.Then drawing a polyline between current pin and last pin.How to do this.Help..!!!!
Thanks
i m droping pin for current location.And also i want to drop another pin
Share
Once an annotation pin is added to map view, it will send a delegate event which you can handle by implementing
- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)viewsIn the above method, create some timer which will drop your next pin.
I didn’t understand what do you mean by “polyline”. If you have to draw a line, implement drawRect in your custom map view class.