<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: An error code in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1096747#M7089</link>
    <description>&lt;P&gt;Very similar question was answered &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-code-migration-10-25-to-100-4-with-arcgis/m-p/1066430/highlight/true#M6997" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;There is a document &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdks-blog/migrating-your-ios-apps-to-arcgis-runtime-v100-0/ba-p/883640" target="_self"&gt;here&lt;/A&gt; describing migration changes from 10.2.x to 100.x.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/ios/" target="_self"&gt;home page for the iOS runtime SDK&lt;/A&gt; provides many samples and sample code. Also the &lt;A href="https://developers.arcgis.com/ios/api-reference/" target="_self"&gt;API reference&lt;/A&gt; is available.&lt;/P&gt;&lt;P&gt;Per the screen shots you provided:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code now would look something more like:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;AGSMap* map = [[AGSMap alloc]init];
[map.operationalLayers addObject:TianDyTuLyr];
[map.operationalLayers addObject:TianDyTuLyr_Anno];
self.mapView.map = map;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you can add your layers to the AGSMap.basemap if that better suits your intention.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 14:07:40 GMT</pubDate>
    <dc:creator>RyanOlson1</dc:creator>
    <dc:date>2021-09-09T14:07:40Z</dc:date>
    <item>
      <title>An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1096652#M7088</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I am using ArcGIS Runtime API for iOS 100.11 version, but 10.2.4 was used before the project. I am modifying the code of the project, and I don't know how to modify the wrong content of some codes in the project. I hope you can help me solve it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 08:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1096652#M7088</guid>
      <dc:creator>雪原高</dc:creator>
      <dc:date>2021-09-09T08:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1096747#M7089</link>
      <description>&lt;P&gt;Very similar question was answered &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-code-migration-10-25-to-100-4-with-arcgis/m-p/1066430/highlight/true#M6997" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;There is a document &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdks-blog/migrating-your-ios-apps-to-arcgis-runtime-v100-0/ba-p/883640" target="_self"&gt;here&lt;/A&gt; describing migration changes from 10.2.x to 100.x.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/ios/" target="_self"&gt;home page for the iOS runtime SDK&lt;/A&gt; provides many samples and sample code. Also the &lt;A href="https://developers.arcgis.com/ios/api-reference/" target="_self"&gt;API reference&lt;/A&gt; is available.&lt;/P&gt;&lt;P&gt;Per the screen shots you provided:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code now would look something more like:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;AGSMap* map = [[AGSMap alloc]init];
[map.operationalLayers addObject:TianDyTuLyr];
[map.operationalLayers addObject:TianDyTuLyr_Anno];
self.mapView.map = map;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you can add your layers to the AGSMap.basemap if that better suits your intention.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 14:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1096747#M7089</guid>
      <dc:creator>RyanOlson1</dc:creator>
      <dc:date>2021-09-09T14:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1097518#M7090</link>
      <description>&lt;P&gt;Hello, I added layers according to the method you said, but the map could not be displayed on the APP. Could you please check the reason?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 03:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1097518#M7090</guid>
      <dc:creator>雪原高</dc:creator>
      <dc:date>2021-09-13T03:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1098865#M7105</link>
      <description>&lt;P&gt;Hello, I am trying to draw the trace, I am trying to add the AGSPolylineBuilder object through the AGSGraphic, but it crashes here，as shown in my screenshot. Please kindly see how to add the AGSPolylineBuilder object to draw the trace.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 11:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1098865#M7105</guid>
      <dc:creator>雪原高1027</dc:creator>
      <dc:date>2021-09-16T11:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1098947#M7106</link>
      <description>&lt;P&gt;You are passing an `AGSPolylineBuilder *` to a function that takes an `AGSGeometry *`. &amp;nbsp;You need to call `toGeometry` on your builder to get a geometry that you can pass to the function.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 15:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1098947#M7106</guid>
      <dc:creator>RyanOlson1</dc:creator>
      <dc:date>2021-09-16T15:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1099277#M7107</link>
      <description>&lt;P&gt;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？&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 06:33:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1099277#M7107</guid>
      <dc:creator>雪原高1027</dc:creator>
      <dc:date>2021-09-17T06:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1099368#M7109</link>
      <description>&lt;P&gt;By a quick visual inspection, nothing stands out as being incorrect per se in that code dealing with the line symbol. &amp;nbsp;I think you should spend some time debugging it and making sure that your poly line geometry is properly formed as you would expect. &amp;nbsp;Unfortunately this forum isn't setup for debugging, you will need to do that on your own. &amp;nbsp;In terms of your original question in this thread, I think that has been answered. &amp;nbsp;Please continue to look at the migration doc that we linked to above for migration issues.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1099368#M7109</guid>
      <dc:creator>RyanOlson1</dc:creator>
      <dc:date>2021-09-17T14:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1099370#M7110</link>
      <description>&lt;P&gt;Also, you can look in our &lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios" target="_self"&gt;samples repo&lt;/A&gt; for similar examples that do what you are trying to do. &amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios/tree/3fbca3cd60a87ec15f0df0c0f55531e62d0ee911/arcgis-ios-sdk-samples/Display%20information/Add%20graphics%20with%20symbols" target="_self"&gt;This sample&lt;/A&gt; in particular seems to be related to your project.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:29:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1099370#M7110</guid>
      <dc:creator>RyanOlson1</dc:creator>
      <dc:date>2021-09-17T14:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1101150#M7118</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 09:11:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1101150#M7118</guid>
      <dc:creator>雪原高1027</dc:creator>
      <dc:date>2021-09-23T09:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: An error code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1101272#M7119</link>
      <description>&lt;P&gt;Since this is a new problem, not related to migrating layers from 10.2.4 to 100.1, please start a new thread in &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/bd-p/arcgis-runtime-sdk-for-ios-questions" target="_blank"&gt;the forum&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;And please be sure to include details about the error. That was missing from your last reply above.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 14:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/an-error-code/m-p/1101272#M7119</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-09-23T14:58:48Z</dc:date>
    </item>
  </channel>
</rss>

