开发者

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

开发者 https://www.devze.com 2023-02-03 18:56 出处:网络
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 a

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

精彩评论

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