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

The Archive Base Latest Questions

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

It must take into account: statusBar (which can be 40 points if you have

  • 0

It must take into account:

statusBar (which can be 40 points if you have hot spot)
TabBar
NavigationBar.

Basically at viewDidLoad I see that my view has a size of 320*480.

I wonder where did iOS decide that as the screen size of my screen. I use UIStoryBoard.

So, on viewDidLoad, I intended to resize that.

I am not even sure if this is the right approach.

Note: the issue I am facing doesn’t seem to happen if I do not use storyBoard.

At viewDidLoad, when I use XIB, the content of self.view is correct, namely 416, instead of 480, due to UInavigationController and UITabBar

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

    Try overriding the UIViewController viewWillLayoutSubviews method. The view’s frame will be set by then.

    In the viewWillLayoutSubviews method, the view controller’s main view is the size you need to know. It has been adjusted for status bars and nav bars and tools bars and tab bars. It also takes into account orientation. There is no single method where you can ask what the size will be. Besides, there is no need to ask such a question. Create all the subviews you want in viewDidLoad. But lay them out based on the view’s size in viewWillLayoutSubviews.

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

Sidebar

Related Questions

I have different types of Roles to take into account when authorizing a user.
I log into Oracle using my own user account, which we can call my_account
I have a function which must return one dimensional associate array, like $user_info[$index]=value where
DateTime::Diff should calculate a proper interval and take into account Daylight Savings Time (DST)
There are 2 main considerations to take into account when thinking about backward compatibility
What are all the aspects must be taken into account when designing your software
I have a homework assignment which asks to have the user input a date
I have a system which is a CRM of sorts, it essentially manages customers
i have an application running on JBoss Seam 2, which uses rich faces as
I have a table, Messages, which is set out as follows: This table stores

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.