Why the status bar is also rotated on my emulator when I put it in landscape mode?

You must Login before you can answer or comment on any questions.

Hello.

There's a simple question. When the iPhone is in landscape mode, the title should appear at top, like in this image:

landscape right

But, on my emulator when I press cmd + left, the title appears also rotated (forget about the content):

fail

why??

1 Answer

Accepted Answer

It seems, that you don't have configured other orientations than portrait in your tiapp.xml:

...
        <orientations device="iphone">
            <orientation>Ti.UI.PORTRAIT</orientation>
        </orientations>
...
simply add landscape:
...
        <orientations device="iphone">
            <orientation>Ti.UI.PORTRAIT</orientation>
            <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
            <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
            <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
        </orientations>
...
to support all 4 orientations.

Your Answer

Think you can help? Login to answer this question!