MKPinAnnotationView - hard to drag
Posted
by
James Zaghini
on Stack Overflow
See other posts from Stack Overflow
or by James Zaghini
Published on 2012-06-06T04:36:44Z
Indexed on
2012/06/06
4:40 UTC
Read the original article
Hit count: 156
I have a MKPinAnnotationView that the user can drag around the map.
It is very difficult for a user to drag the pin. I've tried increasing the frame size and also using a giant custom image. But nothing seems to actually change the hit area for the drag to be larger than default.
Consequently, I have to attempt to tap/drag about ten times before anything happens.
MKPinAnnotationView *annView = [[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"bluedot"] autorelease];
UIImage *image = [UIImage imageNamed:@"blue_dot.png"];
annView.image = image;
annView.draggable = YES;
annView.selected = YES;
return annView;
What am I missing here?
© Stack Overflow or respective owner