Re: [iOS] Sub Class MKPlacemark - Identifying each Placemark
Re: [iOS] Sub Class MKPlacemark - Identifying each Placemark
- Subject: Re: [iOS] Sub Class MKPlacemark - Identifying each Placemark
- From: Philip Vallone <email@hidden>
- Date: Sat, 11 Sep 2010 16:05:39 -0400
Thanks,
This is a good idea. When you created the AddressAnnotation instances, what did you use as the Key (headlineKey), which made them unique?
Thanks,
Phil
On Sep 11, 2010, at 1:00 PM, banane wrote:
> for(NSString *headlineKey in [eDict allKeys]){
> float theLat = [[latDict objectForKey:headlineKey] doubleValue];
> float theLong = [[longDict objectForKey:headlineKey] doubleValue];
>
> CLLocationCoordinate2D theCoordinate;
> theCoordinate.latitude = theLat;
> theCoordinate.longitude = theLong;
>
> AddressAnnotation *theAnnot = [[AddressAnnotation alloc]
> initWithCoordinate:theCoordinate andWithText:headlineKey
> andWithSubtext:[eDict objectForKey:headlineKey]];
> //AddressAnnotation *theAnnot = [[AddressAnnotation alloc]
> initWithCoordinate:theCoordinate andWithText:headlineKey];
> [self.mapView addAnnotation:theAnnot];
>
> }
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden