In my viewForAnnotation viewForAnnotation I create a MKAnnotationView with leftCalloutaccessory as an info button. When the info button is pressed, I want to replace it with a UIActivityIndicator . Therefore, in the calloutAccessoryTapped calloutAccessoryTapped I wrote view.leftCalloutaccessoryView = [UIActivityIndicator indicatorWithStyle:UIActivityIndicatorWhite];
The callout accessory seems to be changing, but it seems that the view is not being updated immediately.
That when the leaderβs accessory hides (by clicking another contact) and opens again, I see a counter. But otherwise, I do not.
I tried calling [view setNeedsdisplay] and [view setNeedsLayout] and [view layoutsubviews] , but in vain.
Any suggestions / pointers?
source share