简体   繁体   中英

mapViewWillStartLoadingMap method does not called second time Swift

I am using Map Kit View. mapViewWillStartLoadingMap method called when I navigate MapViewController first time. Then I go back previous controller and again navigate MapViewController , mapViewWillStartLoadingMap not called. Where is my mistake ?

I am using this method go to previous controller from MapViewController

dismissViewControllerAnimated(true, completion: nil)

Check that your ViewController containing the map is being deInitialised.

Add this to your VC and set a breakpoint on it.

deinit {

}

If its not that, check the delegate for the map view is set correctly when your map VC is on active.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM