ERROR: attempt to select annotation that has not been added

[mapView selectAnnotation:firstAnnotation animated:YES]; 

After debugging this line, type below

ERROR: attempt to select annotation that has not been added

Also viewForAnnotation is not called.

What is the problem?

any solution?

Thanks in advance.

+4
source share

All Articles