Closed LucasDeVil closed 12 years ago
Hi there, sometimes I get the following error combined with an EXC_BAD_INSTRUCTIONS:
"objc[3122]: cannot form weak reference to instance (0x101849790) of class MapViewController"
It is kinda hard to reproduce but seems to be located in the ARC of my project. (Since non-arc should'n support weak references after all.)
MapViewController is registered as the delegate of MKMapView and sometimes this issue happens when I'm manipulating the selected annotations.
-- snip --
Some sample code causing this issue - sometimes. And working fine the other times.
[mapView selectAnnotation:[_managedPoints objectForKey:point] animated:YES];
-- snap--
Do you have any suggestions to get this fixed?
Seems like the issue was in my implementation code. Sorry for that. :)
Hi there, sometimes I get the following error combined with an EXC_BAD_INSTRUCTIONS:
"objc[3122]: cannot form weak reference to instance (0x101849790) of class MapViewController"
It is kinda hard to reproduce but seems to be located in the ARC of my project. (Since non-arc should'n support weak references after all.)
MapViewController is registered as the delegate of MKMapView and sometimes this issue happens when I'm manipulating the selected annotations.
-- snip --
Some sample code causing this issue - sometimes. And working fine the other times.
-- snap--
Do you have any suggestions to get this fixed?