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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:47:27+00:00 2026-05-23T09:47:27+00:00

When I launch my iOS app, it launches in portrait mode. I initially turn

  • 0

When I launch my iOS app, it launches in portrait mode. I initially turn the phone to landscape mode, and successfully resize my UIViews to fit the new screen. Then, I push a new UIViewController, which sizes components based on the current orientation in the viewDidLoad method. If it is landscape mode, it draws a UINavigationBar starting at (0,0) with length equal to the height of the iPhone, and height equal to 50.

Well, the UINavigationBar gets offset (the (0,0) point of it is off the screen) by an amount exactly equal to the height of the status bar. Why does the (0,0) point get messed up, and how do I fix this?

Let me just say that without the status bar (if I add the option to initially hide it), these problems do not exist.

  • 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-05-23T09:47:28+00:00Added an answer on May 23, 2026 at 9:47 am

    You UIViewController is getting offset and the your coordiinates within the view are still at 0, 0.

    Try re-setting the position of the ViewController.

    viewController.view.frame = CGRectMake(0, 0, 320, 480);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to launch the iMessage app (built in new feature for iOS 5)
I want to launch safari browser from my IOS app with an specific url
I recently upgraded my old iPhone app and the new state restore iOS 3/4
I'm currently optimizing my iOS app for the new iPad . Unfortunately by adding
I launch an activity to capture a picture from camera: Intent i = new
Is it possible to launch a new window in JavaScript using the window.Open function,
I want to handle files in my iOS App. My app should create a
I'm trying to use custom font for my iOS app. Here is what I
I have develop an iOS 4 app with latest SDK and XCode 4.2. I
I'm following the iOS Programming guide on Providing Launch Images for Different Orientations and

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.