grgcombs / MultiRowCalloutAnnotationView

An iOS MapKit callout annotation view with independent cells and accessory actions.
Other
249 stars 53 forks source link

MultiRowCalloutAnnotationView hidding #1

Closed PycKamil closed 12 years ago

PycKamil commented 12 years ago

When MultiRowCalloutAnnotationView is shown and you tap second or third time on calloutAccesory, AnnotationView hide and show once again. I think the problem is with selectors pefromed with delays in hitTest method, when you tap buttons less frequently it works just fine.

Edit: I figure it out :

[self preventParentSelectionChange]; [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(allowParentSelectionChange) object:nil]; [self performSelector:@selector(allowParentSelectionChange) withObject:nil afterDelay:1.0];