iOS Autorotate

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.

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

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.

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.

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.

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.