Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9294617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:24:52+00:00 2026-06-18T21:24:52+00:00

Im developing an application using Titanium which is compatible for iPhone. I’m navigating between

  • 0

Im developing an application using Titanium which is compatible for iPhone. I’m navigating between 4 views.
1st View (Portrait) —> 2nd View (Landscape) –> 3rd View (Portrait) —> 4th View (Portrait)
SO I have 3 Portrait views in my application and I used Tiapp.xml and add

<orientations device="iphone">
     <orientation>Ti.UI.PORTRAIT</orientation>
</orientations>

For 2nd View I used following code ;

var winCheckInLogin = Ti.UI.createWindow({
    backgroundColor : "black",
    orientationModes : [Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT],
    navBarHidden : true, // Hides the native title bar
});

winCheckInLogin.addEventListener("open", function() {
    Titanium.UI.orientation = Titanium.UI.LANDSCAPE_LEFT;
});

But for the loading time 2nd View appear on Portrait mode after I rotate my device it keep it as Landscape. I need to load it as Landscape mode and lock that screen as it is.

Please help me to solve this.

Thanks a lot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T21:24:53+00:00Added an answer on June 18, 2026 at 9:24 pm

    Gayan,
    Using different orientation modes for a single app in iPhone is not recommended. Please read Orientation design principles

    Apple’s Developer documentation says: "People expect to use your
    app in different orientations, and it’s best when you can fulfill that
    expectation." In other words, don’t look at handling orientation as a
    bother but an opportunity.

    Apple further recommends that when choosing to lock or support
    orientation, you should consider following these principles:

    On iPhone/iPod Touch – Don’t mix orientation of windows within a single app; so, either lock orientation for the whole app, or react to orientation changes.

    On iPhone – don’t support the portrait-upside-down orientation because that could leave the user with their phone upside-down when receiving a phone call.

    However, if you want to use different orientations, just add the following to your tiApp.xml under <orientations device="iphone"> tag

    <orientations device="iphone">
         <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
         <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
    </orientations>
    

    This will do the trick for you!!

    http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Window-property-orientationModes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Developing iphone application using makkit framework. I have got the map view integrated in
I'm developing an application using the WAF (WPF Application Framework) which is based on
I'm developing an application using PHP and jQuery in which an input must take
I am developing an application using titanium mobile. On the simulator, the app works
I am developing an application in titanium using Javascript. I need an open source
I developing application which using geo-location. Should i ask user right for this when
I want to add a timer to my mobile application, which I'm developing using
i'm developing an application using Wicket as the view layer and JPA(Hibernate) as ORM.
Hi I am developing Android application using Titanium.I want to change value of particular
I am using titanium for developing Android application. I want to delete some data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.