Closed icodebuster closed 11 years ago
did you tried to make -(void)expand public and call it directly?
@sialcasa's solution works.
After making - (void)expand
public, here's how you can call it from the demo app included in this repo:
double delayInSeconds = 2.0;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
JPSThumbnailAnnotation *firstAnnotation = mapView.annotations[0];
[firstAnnotation.view expand];
});
Place this code after [mapView addAnnotations:[self generateAnnotations]];
I need JPSThumbnailAnnotaion to be in an expanded mode in viewDidLoad. I tried with *setView:(JPSThumbnailAnnotationViewStateExpanded )** but failed.
Code I tried
Error I got
Any help appreciated.