¡@

Home 

2014/10/15 ¤U¤È 10:15:53

iphone Programming Glossary: voicememoryannotation

How to keep data associated with MKAnnotation from being lost after a callout pops up and user taps disclosure button?

http://stackoverflow.com/questions/9797047/how-to-keep-data-associated-with-mkannotation-from-being-lost-after-a-callout-po

I have a simple MKAnnotation class that looks like #import Foundation Foundation.h #import MapKit MapKit.h @interface VoiceMemoryAnnotation NSObject MKAnnotation NSString blobkey @property nonatomic retain NSString blobkey id initWithBlobkey NSString key andCoordinate.. rightButton return singleAnnotationView If I understand correctly the above method is called when you add a VoiceMemoryAnnotation to a map object. When this viewForAnnotation is called I simply allocate a MKPinAnnotationView object and return it. When.. selected return id MKAnnotation selectedAnn mapView.selectedAnnotations objectAtIndex 0 if selectedAnn isKindOfClass VoiceMemoryAnnotation class VoiceMemoryAnnotation vma VoiceMemoryAnnotation selectedAnn NSLog @ selected VMA @ blobkey @ vma vma.blobkey else..