Why am I crashing after MKMapView is freed if I'm no longer using it?

后端 未结 4 540
误落风尘
误落风尘 2020-12-02 15:00

I have a MKMapView. Sometimes after my view controller is dismissed, I\'ll get a EXC_BAD_ACCESS.

I turned on NSSZombies and it

4条回答
  •  我在风中等你
    2020-12-02 15:25

    Setting the map view's delegate to nil didn't work for me. However, setting showsUserLocation=NO on the delegate worked by making sure no location updates are received.

提交回复
热议问题