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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:28:28+00:00 2026-06-15T07:28:28+00:00

I have a view that is Landscape only (both). It is displayed as a

  • 0

I have a view that is Landscape only (both).
It is displayed as a modal view controller.

On the iphone 5 (simulator, I haven’t tried a device yet), when the view displays it is sized to 320×480, instead of 320×568, and it’a aligned left.

BUT… if I rotate the simulator to the other landscape orientation, or to portrait and back again, it autoresizes correctly and fills out the screen.

I’d paste code if I knew exactly what to paste… but there’s so much involved here, I’m not sure where to start.

All of my other views resize just fine, but they are also all contained within UITabbarControllers or UINavigationControllers.

  • 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-15T07:28:30+00:00Added an answer on June 15, 2026 at 7:28 am

    My short/gross/simple solution to the problem was simply to set the frame of my view to the main screen’s bounds.

    [self.view setFrame:[[UIScreen mainScreen] bounds]];
    

    As always… this can’t be done until the self.view actually loads so that it’s frame can be set! So I have to do this in – (void)viewDidAppear

    I didn’t bother to detect a device since I ALWAYS want this view to be fullscreen no matter what the device (including iPad.

    My guess is that the build in controllers (UINavigationController, etc…) have logic for detecting iPhone 5 and setting the frame bounds accordingly.


    UPDATE: As is turns out, I had a larger issue. My main “Window” in the MainWindow.xib was not set to “Full Screen at Launch”. This is a check box Utilities view for the Window in the .xib

    Because it wasn’t checked, my touch targets were also being masked outside of the bounds of the xib files 3:2 dimensions. Checking this box fix my touch targets AND fixed the screen filling issue in my question above. I removed the code in my original answer and the view fills the whole screen/window nicely because the “Window” is now the size of the screen.

    Makes more sense now…

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

Sidebar

Related Questions

I have a view that is made to be displayed in landscape mode only,
I have a UITableViewController that works in both portrait and landscape. From this controller
I have a view controller in my iphone app setup so that when I
I have two UIViewControllers that are contained in a navigatoin view controller and both
My statusbar orientation is landscape, I have a cocos2d view that only supports portrait
I have an iPad game that I only want to see in landscape view.
I have secondViewController that can display content in both landscape and portrait view. The
I have a viewcontroller and its view that support only landscape in iPad. -
I have a View that contains a ParentModel, which contains 2 Models. I only
I need a view that can display both in Portrait and landscape.But when I

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.