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 8852115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:19:13+00:00 2026-06-14T13:19:13+00:00

Hi I was checking the orientations changes of iOS6 and I made everything work

  • 0

Hi I was checking the orientations changes of iOS6 and I made everything work fine except one thing. There is no way to start the app on landscape.

How can I do to start the app on landscape? I found this How to force a UIViewController to Portrait orientation in iOS 6 but that’s not working, the app ALWAYS start in portrait and I needed to start it on landscape…

When I go to an other view and then go back to the “initial view” it is on landscape! But when the app starts it’s on portrait…

Thank you!!

—————————– UPDATE ——————————-

This is how I’m loading from the app delegate the main view:

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
myViewController = [[myViewController alloc] init];

self.navController = [[UINavigationController alloc] initWithRootViewController:myViewController] ;

[self.window setRootViewController:navController];
[self.window makeKeyAndVisible];

—————————– UPDATE 2——————————
I made it work, I changed the previous code for:

self.navController = [[UINavigationController alloc] init] ;
[self.window setRootViewController:navController];
[self.window makeKeyAndVisible];
[navController presentViewController:myViewController animated:NO completion:NULL];

I hope this is useful for someone else!

  • 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-14T13:19:14+00:00Added an answer on June 14, 2026 at 1:19 pm

    This is how I made it work:

    self.navController = [[UINavigationController alloc] init] ;
    [self.window setRootViewController:navController];
    [self.window makeKeyAndVisible];
    [navController presentViewController:myViewController animated:NO completion:NULL];
    

    I hope it helps someone else!

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

Sidebar

Related Questions

Checking for updates in Eclipse sometimes takes quite some time. Is there any way
Checking there are any option to read the config values directly from aspx page
How can I make my app keep checking for this? Meaning by keep checking
When checking my website a couple of days ago, everything was OK, but having
I'm checking my app with Leaks and find some memory leaks indeed. But In
i am checking a sample project from github an i got this error,,in one
Checking of internet connection by requesting an image does not work after the image
Im checking the examples google gives on how to start using python; especifically the
Checking the Xerces-C++ webpage , I saw there are two major branches of the
I'm checking the orientation of a screen inside a view using: getResources().getConfiguration().orientation New versions

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.