<?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 App Rotation with Tab Bar in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2096#M14</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;has anyone been able to get a tab bar based application to rotate to the device orientation.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have returned YES to rotate but nothing happens.&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;return YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried this in both iPhone &amp;amp; iPad within the simulator, and iPhone on device.&amp;nbsp; Regular apple templates react as expected, but ESRI templates do not.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jul 2010 19:12:22 GMT</pubDate>
    <dc:creator>JeffPapirtis</dc:creator>
    <dc:date>2010-07-15T19:12:22Z</dc:date>
    <item>
      <title>App Rotation with Tab Bar</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2096#M14</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;has anyone been able to get a tab bar based application to rotate to the device orientation.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have returned YES to rotate but nothing happens.&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;return YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried this in both iPhone &amp;amp; iPad within the simulator, and iPhone on device.&amp;nbsp; Regular apple templates react as expected, but ESRI templates do not.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 19:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2096#M14</guid>
      <dc:creator>JeffPapirtis</dc:creator>
      <dc:date>2010-07-15T19:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: App Rotation with Tab Bar</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2097#M15</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IN case of a tab bar app, all the view controllers of the tab bar should override - &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 YES ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;once all view controllers are allowed to autorotate , then only tab bar will rotate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more way is subclass UITabBarController and then override its shouldAutoRotate function to YES.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tell me if it works or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Harikant Jammi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 06:14:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2097#M15</guid>
      <dc:creator>HarikantJammi</dc:creator>
      <dc:date>2010-07-16T06:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: App Rotation with Tab Bar</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2098#M16</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It didn't work with me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to rotate the device orientation &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have returned YES to rotate but nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried this in both iPhone &amp;amp; iPad within the simulator&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and all view controllers are allowed to autorotate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i show a view using the Following code&amp;nbsp; after clicking on the map (which is not rotated):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[self presentModalViewController:MySubView animated:YES];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ShowDataView release];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and rotate the simulator , it rotate !! and when i go back to the tabBar the map show up unrotated &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see attached image &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas ??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 07:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2098#M16</guid>
      <dc:creator>FaisalSabri</dc:creator>
      <dc:date>2011-05-25T07:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: App Rotation with Tab Bar</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2099#M17</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have found that it is easier to start with the apple template and then add dependencies for ArcGIS for iOS.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I went through this exercise of trying to use the ESRI template and enable AutoRotate without any success.&amp;nbsp; I ended up comparing the apple template and ESRI template against eachother, and even after mimicking the apple template I was not able to produce the results that I needed (AutoRotate).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It was much easier and less frustrating to just build it using the apple template as a starting point.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI has a very good help section on adding dependencies to your project to allow for the use of ArcGIS for iOS SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 16:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2099#M17</guid>
      <dc:creator>JeffPapirtis</dc:creator>
      <dc:date>2011-06-01T16:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: App Rotation with Tab Bar</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2100#M18</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try modify ...-Info.plist file in your Xcode project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you will modify it as source file, it can be like in my project&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; &amp;lt;key&amp;gt;UISupportedInterfaceOrientations&amp;lt;/key&amp;gt;
 &amp;lt;array&amp;gt;
&amp;nbsp; &amp;lt;string&amp;gt;UIInterfaceOrientationPortrait&amp;lt;/string&amp;gt;
&amp;nbsp; &amp;lt;string&amp;gt;UIInterfaceOrientationPortraitUpsideDown&amp;lt;/string&amp;gt;
&amp;nbsp; &amp;lt;string&amp;gt;UIInterfaceOrientationLandscapeLeft&amp;lt;/string&amp;gt;
&amp;nbsp; &amp;lt;string&amp;gt;UIInterfaceOrientationLandscapeRight&amp;lt;/string&amp;gt;
 &amp;lt;/array&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you will modify this plist file as XML property list (default variant), it can be like this screenshot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/app-rotation-with-tab-bar/m-p/2100#M18</guid>
      <dc:creator>MuratDzhusupov</dc:creator>
      <dc:date>2021-12-10T20:05:47Z</dc:date>
    </item>
  </channel>
</rss>

