我有一個MKAnnotationView,用戶可以在地圖上拖動。MKAnnotationView - 難以拖動
用戶很難拖動該引腳。我試圖增加幀的大小,並使用巨大的自定義圖像。但似乎沒有什麼實際上改變拖拽的命中區域大於默認值。
因此,在發生任何事情之前,我必須嘗試點擊/拖動大約十次。
MKAnnotationView *annView = [[[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"bluedot"] autorelease];
UIImage *image = [UIImage imageNamed:@"blue_dot.png"];
annView.image = image;
annView.draggable = YES;
annView.selected = YES;
return annView;
我在這裏錯過了什麼?
編輯:
原來的問題是,MKAnnotationView需要被感動,然後才能拖動。我遇到了麻煩,因爲附近有很多引腳,我的MKAnnotationView非常小。