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

后端 未结 4 541
误落风尘
误落风尘 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:36

    The problem, in my case, was that first time I launched app I don't press "allow" when prompting for location authorization (accidentally!!).

    Uninstalling app and re-installing it, when prompt appear I allow the authorizations and no more crash!

提交回复
热议问题