# iOS Autorotate

**URL:** <https://techcommunity.softwareag.com/t/ios-autorotate/101904>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [November 16, 2012, 6:16pm UTC](https://techcommunity.softwareag.com/t/ios-autorotate/101904 "2012-11-16T18:16:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [November 16, 2012, 6:16pm UTC](https://techcommunity.softwareag.com/t/ios-autorotate/101904/1 "2012-11-16T18:16:56Z")

</div>

Hi all

I am having an issue with my current iOS builds. All my projects seem to  
build with the autorotate feature enabled I think this was a feature  
added in a recent update to wmMD as I don’t remember it occurring in  
older versions. I was just wondering if anyone knew how to disable this  
feature either in xcode or before compile in wmMD.

Kind Regards,

Kareem.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [November 16, 2012, 6:36pm UTC](https://techcommunity.softwareag.com/t/ios-autorotate/101904/2 "2012-11-16T18:36:56Z")

</div>

Hi Kareem,

Further on this, I believe you can add  
project.handset.adapttoorientationchange=false to either your handset  
target file (if you only want it for one particular target) or to the  
default file to specify that it shouldn’t auto-rotate.

More info on this property can be found on page 7 of the  
_Mobile\_Designer\_Properties_.pdf in the ${MOBILE\_DESIGNER\_INSTALL}/Docs  
directory.

Spencer

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [November 16, 2012, 6:41pm UTC](https://techcommunity.softwareag.com/t/ios-autorotate/101904/3 "2012-11-16T18:41:56Z")

</div>

Thanks Spencer and Nick,

I seem to be having the issue even with the native samples so I may be  
doing something wrong. I’ll check again and make sure I am selecting the  
appropriate target to build for and also I’ll try adding in the lines  
you suggested spencer.

Thanks again for your support.

Kind regards,

Kareem.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [November 19, 2012, 11:01am UTC](https://techcommunity.softwareag.com/t/ios-autorotate/101904/4 "2012-11-19T11:01:56Z")

</div>

Hi Guys,

So I have tried both these solutions but I am still facing the  
autorotate issue. I’m not sure if it is actually applying autorotate or  
some different function as when the screen is rotated the elements do  
not fit to the new orientation and when rotating back to portrait part  
of the screen appears to slide of the bottom. I also included some  
screenshots to help demonstrate.

I’m still not sure if this is an issue affecting just me or if something  
has changed perhaps in the latest iOS sdk which is causing this. The  
target device I am building for is iOS\_Apple\_iPhone4 and I am using OS X  
10.8.2 with Xcode 4.5.2.

Kind Regards,

Kareem.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [November 16, 2012, 6:31pm UTC](https://techcommunity.softwareag.com/t/ios-autorotate/101904/5 "2012-11-16T18:31:57Z")

</div>

Hi Kareem,

I don’t believe this feature is enabled by default. If you try out  
NativeUIDemo, for example, the iPhone build does not rotate. The two  
lines that are present in the various other Dynamic\_Orientation targets  
enable the feature. Without them, the build should not rotate.

Regards,

Nick.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [November 19, 2012, 12:06pm UTC](https://techcommunity.softwareag.com/t/ios-autorotate/101904/6 "2012-11-19T12:06:56Z")

</div>

Hi Kareem,

Can you send me the generated _cpp\_edit_ folder (with XCode project  
inside) that you’ve created that results in this. I’m not seeing on the  
builds I’m making here.

Regards,

Nick.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:02pm UTC](https://techcommunity.softwareag.com/t/ios-autorotate/101904/7 "2021-04-02T15:02:39Z")

</div>


