Very similar question was answered here.
There is a document here describing migration changes from 10.2.x to 100.x.
The home page for the iOS runtime SDK provides many samples and sample code. Also the API reference is available.
Per the screen shots you provided:
To add a layer to a map view, you add the layer to an AGSMap through the operationalLayers property and then assign the AGSMap to your AGSMapView.
The code now would look something more like:
AGSMap* map = [[AGSMap alloc]init];
[map.operationalLayers addObject:TianDyTuLyr];
[map.operationalLayers addObject:TianDyTuLyr_Anno];
self.mapView.map = map;
Alternatively, you can add your layers to the AGSMap.basemap if that better suits your intention.
You are passing an `AGSPolylineBuilder *` to a function that takes an `AGSGeometry *`. You need to call `toGeometry` on your builder to get a geometry that you can pass to the function.
First, thank you for your feedback. I have another problem, on the map display, I want to show the track, but only the mark points of AGSPictureMarkerSymbol are shown here, and the words I wrote AGSSimpleLineSymbol are not shown on the map. Please help to check whether there is a problem with the code?
By a quick visual inspection, nothing stands out as being incorrect per se in that code dealing with the line symbol. I think you should spend some time debugging it and making sure that your poly line geometry is properly formed as you would expect. Unfortunately this forum isn't setup for debugging, you will need to do that on your own. In terms of your original question in this thread, I think that has been answered. Please continue to look at the migration doc that we linked to above for migration issues.
Also, you can look in our samples repo for similar examples that do what you are trying to do. This sample in particular seems to be related to your project.
Hello, I used ArcGIS Runtime for ios framework in my project. The map could be displayed normally in the simulator, but when I tested it on a real machine, the phone would be stuck and the project could not run. ArcGIS Runtime Error Occurred is displayed in the log. I do not understand the specific problem, please help to solve it.
Since this is a new problem, not related to migrating layers from 10.2.4 to 100.1, please start a new thread in the forum.
A good title might be "Map displays in simulator but not on device". That will help people know if they can step in and help. Others may also have the same issue and they'll be able to find this thread and see how we resolve it.
And please be sure to include details about the error. That was missing from your last reply above.
Thank you!