<?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: Legend code with XCode 4.2 and storyboard in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/legend-code-with-xcode-4-2-and-storyboard/m-p/678526#M6035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It turns out I had a weak reference to the icon image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Changed that to strong, and everything is ok, icons render properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to submit my legend for review. Perhaps someone would find it useful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2012 17:34:17 GMT</pubDate>
    <dc:creator>RickJones</dc:creator>
    <dc:date>2012-01-13T17:34:17Z</dc:date>
    <item>
      <title>Legend code with XCode 4.2 and storyboard</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/legend-code-with-xcode-4-2-and-storyboard/m-p/678525#M6034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone tried the legend code with a storyboard?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a modified legend working with a .xib style project. It uses on/off slider switch on each layer, with collapsing sub-types. All icons render.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just made a storyboard sample, with a button calling a segue for a popover tableview controller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Dynamic layers display legend icons properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Feature layers display legend icons only for the lines in the visible frame of the popover.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything else has no legend icons when scrolled into view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if the layer is turned off (layer view's alpha = 0) when the legend appears, the icons never appear even for the parts within the frame. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can provide code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 17:03:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/legend-code-with-xcode-4-2-and-storyboard/m-p/678525#M6034</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2012-01-13T17:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Legend code with XCode 4.2 and storyboard</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/legend-code-with-xcode-4-2-and-storyboard/m-p/678526#M6035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It turns out I had a weak reference to the icon image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Changed that to strong, and everything is ok, icons render properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to submit my legend for review. Perhaps someone would find it useful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 17:34:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/legend-code-with-xcode-4-2-and-storyboard/m-p/678526#M6035</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2012-01-13T17:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Legend code with XCode 4.2 and storyboard</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/legend-code-with-xcode-4-2-and-storyboard/m-p/678527#M6036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is my project using an ESRI basemap and the trail feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is very basic, the legend button only displays the legend. Touch the map to release it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The segue is created by right-clicking-and-dragging from the Legend button to the TOC view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the button is touched, it fires the segue (after calling prepareForSegue).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The legend uses an array for the layers, and another array for visible index of layers (from collapsing breakdown lines).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Each layer has a pointer to it's view, for setting the alpha on or off.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The legend array is only loaded when the TOC screen is displayed because OnlineOfflineFeatureLayers were not triggering LayerLoaded in offline mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reusable tableview cells were causing problems redrawing with other cells' switches, so I use unique cell names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;**Only the iPad storyboard has been setup**&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 13:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/legend-code-with-xcode-4-2-and-storyboard/m-p/678527#M6036</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2012-01-19T13:35:57Z</dc:date>
    </item>
  </channel>
</rss>

