<?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 Possible error in documentation in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/possible-error-in-documentation/m-p/759469#M6795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This tutorial incorrectly states that to get the map to rotate all I need to do is include the following code in the view controller implementation file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Return YES for supported orientations&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (interfaceOrientation == UIInterfaceOrientationPortrait);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above code snippet will keep the map in the portrait orientation and won't rotate the map when the device is moved to a landscape orientation. Instead of returning (interfaceOrientation == UIInterfaceOrientationPortrait) the method should return YES.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Dec 2009 05:24:00 GMT</pubDate>
    <dc:creator>deleted-user--c7HXKQt3eCH</dc:creator>
    <dc:date>2009-12-30T05:24:00Z</dc:date>
    <item>
      <title>Possible error in documentation</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/possible-error-in-documentation/m-p/759469#M6795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This tutorial incorrectly states that to get the map to rotate all I need to do is include the following code in the view controller implementation file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Return YES for supported orientations&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (interfaceOrientation == UIInterfaceOrientationPortrait);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above code snippet will keep the map in the portrait orientation and won't rotate the map when the device is moved to a landscape orientation. Instead of returning (interfaceOrientation == UIInterfaceOrientationPortrait) the method should return YES.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 05:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/possible-error-in-documentation/m-p/759469#M6795</guid>
      <dc:creator>deleted-user--c7HXKQt3eCH</dc:creator>
      <dc:date>2009-12-30T05:24:00Z</dc:date>
    </item>
    <item>
      <title>Typo in shouldAutorotateToInterfaceOrientation method</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/possible-error-in-documentation/m-p/759470#M6796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your comment on the error. You are indeed correct in that there is a typo in the shouldAutorotateToInterfaceOrientation method. The contents of the method should read:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: the "!=" and not "==".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same thing can be accomplished by returning YES.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 15:58:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/possible-error-in-documentation/m-p/759470#M6796</guid>
      <dc:creator>DavidCardella</dc:creator>
      <dc:date>2009-12-30T15:58:04Z</dc:date>
    </item>
  </channel>
</rss>

