ios 11 mapView not rendering at startup

We're seeing a problem where, on initial startup of the app in either the simulators or a device our mapView isn't rendering. We just see the annotations, but no map. If backgrounding/foregrounding the app at that point, the mapView will render. This only happens in iOS 11. We don't think we're doing anything particularly out of the ordinary. We do use a helper delegate to handle all the map-related functions, off the main view controller. But that's it.


We've run the WWDC 2017 mapkit clustering sample, and that works fine.


Has anyone experienced this? Thanks in advance

Replies

I'm experiencing exactly the same issue you've described. Did you find a solution at all?

I have the same problem. Did you find a solution?

I have also the same issue.

Has someone find a solution?

Hi, did you find a solution?

Had the same issue. I solved it initializsing the MKMapView on viedDidLoad (as opposed to doing it at the top of the UIViewController):


class MapViewController: ViewController {

    private var mapView: MKMapView?

    override viewDidLoad() {
        super.viewDidLoad()

        mapView = MKMapView(frame: .zero) // Note: I set the size somwhere else
        mapView?.delegate = self
    }
}