title: MapView Drop and Drag Pin - Custom MKAnnotationView iOS 5
body: <p>I kept looking for hours, trying to get and update somehting to work on iOS 5 for a drop and drag pin. I think i'm pretty close... but stock when trying to init a custom annotation.</p>
  
  <p>Here's my class</p>
  
  <pre><code>.h
  @interface AnnotationView : MKAnnotationView ...
  
  .m
  @interface AnnotationView () 
  @property (nonatomic, assign) BOOL hasBuiltInDraggingSupport;
  @end
  
  @implementation AnnotationView
  @synthesize hasBuiltInDraggingSupport, mapView;
  
  
  - (id)initWithAnnotation:(id &lt;MKAnnotation&gt;)annotation reuseIdentifier:(NSString *)reuseIdentifier {
  
  self.hasBuiltInDraggingSupport = [[MKAnnotationView class] instancesRespondToSelector:NSSelectorFromString(@"isDraggable")];
  
  if (self.hasBuiltInDraggingSupport) {
      if ((self = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:reuseIdentifier])) {
          [self performSelector:NSSelectorFromString(@"setDraggable:") withObject:[NSNumber numberWithBool:YES]];
      }
  }
  
  self.canShowCallout = YES;
  return self;
  }
  @end
  </code></pre>
  
  <p>And the problem is on the line</p>
  
  <pre><code>self = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:reuseIdentifier]
  </code></pre>
  
  <p>it says : Incompatible pointer types assigning to 'AnnotationView * __strong' from 'MKPinAnnotationView *'</p>
  
  <p>Also, the next line is getting a warning to</p>
  
  <pre><code>[self performSelector:NSSelectorFromString(@"setDraggable:") withObject:[NSNumber numberWithBool:YES]];
  </code></pre>
  
  <p>Thx</p>
  
  <p>The warning says that setDraggable: selector is unknow.. but shouldn't be herited from</p>