mapViewDidLoad method not loaded

后端 未结 2 2013
广开言路
广开言路 2021-01-25 14:56

New to objective c, and I am using ArcGIS for the map portion. I have a problem where the method mapViewDidLoad is not called/loaded. Here is some part of the code:

2条回答
  •  时光取名叫无心
    2021-01-25 15:29

    make sure that mapviewdelegate is connected by right click on mapview and then assign delegate.. enter image description here

    or add [self.mapview setDelegate:self];

    in your case "AGSMapView" mapViewDidLoad: method on AGSMapViewLayerDelegate is invoked after the first layer has been added to the map. At this point, the component is fully functional you can find reference to it in http://help.arcgis.com/en/arcgismobile/10.0/apis/iphone/reference/interface_a_g_s_map_view.html

    make self.mapview.layerDelegate = self;

提交回复
热议问题