开发者

how can i show two different color's pin annotation in MKMapView?

i am using MKMapView Annotation for Displaying pin's.In my Project there are many number of pin's dropping.i w开发者_如何学JAVAant to just show the difference between current location's pin color and other pin's color.so how can i show two different pin's color for current location and other location.


   // Identify which pin is being selected  
   if([[annotation title] isEqualToString:@"Current Location"]) 
   {   
     annView.pinColor = MKPinAnnotationColorRed;
   }

also check this link: Issue with Map Annotation and MKMapView in iOS 4.2?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜