<?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: Bug Report: mapview setFrame in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/bug-report-mapview-setframe/m-p/607168#M5338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am still new to this - maybe it is a chance for me to learn. I could be all wrong on this, Jeremy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way I understand how ESRI separates class properties and instance variables is like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mapView&amp;gt; - class property&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;_mapView&amp;gt; - instance variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This can be seen in the synthesize statement and the header file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually I setup and use the property like this: [self.mapView goDoSomething];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your example, it looks like you may have alloc/init'd a method variable while you probably also have a class property and instance variable available for use. This assumes you use the ESRI convention of setting up all of these in your header file and synthesize statement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2011 11:03:24 GMT</pubDate>
    <dc:creator>PaulLohr</dc:creator>
    <dc:date>2011-10-31T11:03:24Z</dc:date>
    <item>
      <title>Bug Report: mapview setFrame</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/bug-report-mapview-setframe/m-p/607167#M5337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I instantiate an AGSMapView like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;AGSMapView *mapview = [[AGSMapView alloc] init];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;later calling "setFrame" like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;[_mapView setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 325)];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;produces the following error, when I try to interact with the map object (e.g. autoPan = YES, zoom in/out, or manually pan the map) after I make the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;setFrame&lt;/SPAN&gt;&lt;SPAN&gt; call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instantiating the AGSMapView and setting the frame all at once, on the other hand, produces the correct results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;_mapView = [[AGSMapView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 325)];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can work around it; if it is in fact a bug, I thought you would like to know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2011 17:30:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/bug-report-mapview-setframe/m-p/607167#M5337</guid>
      <dc:creator>JeremyBixby</dc:creator>
      <dc:date>2011-10-30T17:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bug Report: mapview setFrame</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/bug-report-mapview-setframe/m-p/607168#M5338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am still new to this - maybe it is a chance for me to learn. I could be all wrong on this, Jeremy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way I understand how ESRI separates class properties and instance variables is like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mapView&amp;gt; - class property&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;_mapView&amp;gt; - instance variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This can be seen in the synthesize statement and the header file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually I setup and use the property like this: [self.mapView goDoSomething];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your example, it looks like you may have alloc/init'd a method variable while you probably also have a class property and instance variable available for use. This assumes you use the ESRI convention of setting up all of these in your header file and synthesize statement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 11:03:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/bug-report-mapview-setframe/m-p/607168#M5338</guid>
      <dc:creator>PaulLohr</dc:creator>
      <dc:date>2011-10-31T11:03:24Z</dc:date>
    </item>
  </channel>
</rss>

