0

I create a MKMapView and associate a MKMapViewDelegate with it.

The MKMapViewDelegate gets notified correctly that DidUpdateUserLocation and other life cycle events occurred.

When I create another MKMapView later on in the app, the MKMapViewDelegate doesn't receive any notifications about MapLoaded or the like. Just the constructor is fired.

How do I get a new map instance the 2nd time to update the MKMapViewDelegate with lifecycle events?

Ian Vink
  • 66,960
  • 104
  • 341
  • 555

1 Answers1

0

Using .NET for iPhones (MonoTouch)

In the Map Delegate handle this event ONCE only, it gets fired a lot. This way you never need to worry about how the map caches.

    public override void RegionChanged (MKMapView mapView, bool animated)
    {
        if (!hasSetupMapBoolean)
        {
            localCopymap = mapView;
            DoYourSetupMap ();
        }
    }
Ian Vink
  • 66,960
  • 104
  • 341
  • 555